[ESS] ESS-help Digest, Vol 107, Issue 21

Serdar akin1876 at gmail.com
Tue Jan 24 20:07:17 CET 2012


On 2012-01-24 12.00, ess-help-request at r-project.org wrote:
> Send ESS-help mailing list submissions to
> 	ess-help at r-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://stat.ethz.ch/mailman/listinfo/ess-help
> or, via email, send a message with subject or body 'help' to
> 	ess-help-request at r-project.org
>
> You can reach the person managing the list at
> 	ess-help-owner at r-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ESS-help digest..."
>
>
> Today's Topics:
>
>     1. Re:  Integration of Sweave R and ESS (Rodney Sparapani)
>     2. Re:  Automatic insertion of space after comma in iESS mode
>        (Vitalie Spinu)
>     3. Re:  ess-library or ess-display-help-on-object do not work
>        (properly) (Vitalie Spinu)
>     4. Re:  Automatic insertion of space after comma in iESS mode
>        (Aleksandar Blagoti?)
>     5. Re:  Automatic insertion of space after comma in iESS mode
>        (Andreas Leha)
>     6. Re:  Automatic insertion of space after comma in iESS mode
>        (Aleksandar Blagoti?)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 23 Jan 2012 13:35:37 -0600
> From: Rodney Sparapani<rsparapa at mcw.edu>
> To:<ess-help at stat.math.ethz.ch>
> Subject: Re: [ESS] Integration of Sweave R and ESS
> Message-ID:<jfkcq9$h8b$1 at dough.gmane.org>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
>
> Serdar wrote:
>> Hi,
>>
>> This works on my mac at home, but from at my workplace we are not
>> allowed to work with UNIX or Linux so we have to use Windows. Hence
>> there is no terminal where I can use R CMD Sweave %, yet. But we have R
>> and can use the Sweave command,  but how do a adjust the code given for
>> this?
>>
>> Serdar
> Are you deliberately avoiding the Windows Terminal program?
>
> Rodney
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 23 Jan 2012 21:38:01 +0100
> From: Vitalie Spinu<spinuvit at gmail.com>
> To: Aleksandar Blagoti?<aca.blagotic at gmail.com>
> Cc: "Richard M. Heiberger"<rmh at temple.edu>, ess-help at r-project.org
> Subject: Re: [ESS] Automatic insertion of space after comma in iESS
> 	mode
> Message-ID:<87fwf6889i.fsf at gmail.com>
> Content-Type: text/plain; charset=utf-8
>
> Aleksandar Blagoti?<aca.blagotic at gmail.com>  writes:
>
>> That is a nice feature indeed, but I already have all those smart functions
>> assigned to custom keybindings. And what keeps me frustrated the most is
>> inconsistency. While smart comma "works" in iESS buffer, it does not work
>> in R scripts (r-mode), unlike smart assignment string which is kind-of
>> global for S/R dialects.
>>
> Ok, it's fixed now and forever. There is ess-R-smart-operators variable
> which can be t to activate the smart-comma (and all other smart
> operators to come) in both ESS and iESS. It's nil by default. In the
> future it will also allow a list to explicitly enumerate desired smart
> operators for the specific mode.
>
> Handy-command invocation on "," immediately after the prompt stays though.
>
>
> "Richard M. Heiberger"<rmh at temple.edu>  writes:
>> This suggests another new feature.  We currently have a family of
>> indentation functions (indent-region, etc).
>> Can you write a new family of ess-smartification functions that will allow
>> the user to go back and apply all
>> of the new smart key options to  the region?  This I would use.  For
>> example, if someone sends to R-help
>> a line of the form "y<-abcd(d,e,f,g)", the new capability would convert it
>> to
>> "y<- abcd(d, e, f, g)"
> I think something like that is already in ESS but I cannot find it nor
> remember the function.
>
>
> Your idea suggest yet another new feature. Imagine that not the user,
> but Emacs goes back automatically and corrects all the mess. It could be
> invoked by SPACE key or it could be triggered by an idle timer.
>
> You type
>
> tf<-foo%in%boo==zoo
>
> and on next SPC it transforms into
>
> tf<- foo %in% boo == zoo
>
> Sounds pretty cool to me - doesn't interfere with the user's habits and
> still corrects everything. It's even faster since you don't have to type
> spaces :-)
>
> Best,
> Vitalie.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 23 Jan 2012 21:46:29 +0100
> From: Vitalie Spinu<spinuvit at gmail.com>
> To: Aleksandar Blagoti?<aca.blagotic at gmail.com>
> Cc: ess-help at r-project.org
> Subject: Re: [ESS] ess-library or ess-display-help-on-object do not
> 	work	(properly)
> Message-ID:<87bopu87ve.fsf at gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Vitalie Spinu<spinuvit at gmail.com>  writes:
>
>>> At first, all ido-completions are working like a charm. After I load
>>> wordcloud, everything's fine... I can use
>>> ess-display-help-on-object(binded to C-c C-v). But after I load
>>> brew, I can't get help for brew. Same stands for packages that are added
>>> afterwards. This seems like a bug to me. Can you replicate this behaviour?
>>>
>> This is old ESS not-so-nice behaviour which relies on tracking your
>> input. Try with argument:  C-u C-c C-v
> ESS has a feature to track the occurrence of library(...) if you invoke
> it from the prompt, and resets cached objects. If you send
> "library(...)"  from another buffer ESS doesn't detect it.
>
> ess-library didn't reset it either,  not it does.
>
> The above unreliable detection will probably go away in the close
> future,  but not for the next ESS release. For time being you can use
> the universal argument to force updating of the help topics.
>
> Vitalie.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 23 Jan 2012 22:29:41 +0100
> From: Aleksandar Blagoti?<aca.blagotic at gmail.com>
> To: Vitalie Spinu<spinuvit at gmail.com>
> Cc: "Richard M. Heiberger"<rmh at temple.edu>, ess-help at r-project.org
> Subject: Re: [ESS] Automatic insertion of space after comma in iESS
> 	mode
> Message-ID:
> 	<CAL8dPffW=UBQCADNDf0-qD=eVTvZi1aFG3DMPCHNm4resRSOgw at mail.gmail.com>
> Content-Type: text/plain
>
> Thanks a lot for the fix! And when it comes to "automatic code fixing", I
> always wanted a feature like that. So far, I've been changing stuff by hand
> or regexp-replace, which is dull and requires a lot of effort (but makes
> your regex skills better).
>
> aL3xa
>
>
>
> On Mon, Jan 23, 2012 at 21:38, Vitalie Spinu<spinuvit at gmail.com>  wrote:
>
>> Aleksandar Blagotić<aca.blagotic at gmail.com>  writes:
>>
>>> That is a nice feature indeed, but I already have all those smart
>> functions
>>> assigned to custom keybindings. And what keeps me frustrated the most is
>>> inconsistency. While smart comma "works" in iESS buffer, it does not work
>>> in R scripts (r-mode), unlike smart assignment string which is kind-of
>>> global for S/R dialects.
>>>
>> Ok, it's fixed now and forever. There is ess-R-smart-operators variable
>> which can be t to activate the smart-comma (and all other smart
>> operators to come) in both ESS and iESS. It's nil by default. In the
>> future it will also allow a list to explicitly enumerate desired smart
>> operators for the specific mode.
>>
>> Handy-command invocation on "," immediately after the prompt stays though.
>>
>>
>> "Richard M. Heiberger"<rmh at temple.edu>  writes:
>>> This suggests another new feature.  We currently have a family of
>>> indentation functions (indent-region, etc).
>>> Can you write a new family of ess-smartification functions that will
>> allow
>>> the user to go back and apply all
>>> of the new smart key options to  the region?  This I would use.  For
>>> example, if someone sends to R-help
>>> a line of the form "y<-abcd(d,e,f,g)", the new capability would convert
>> it
>>> to
>>> "y<- abcd(d, e, f, g)"
>> I think something like that is already in ESS but I cannot find it nor
>> remember the function.
>>
>>
>> Your idea suggest yet another new feature. Imagine that not the user,
>> but Emacs goes back automatically and corrects all the mess. It could be
>> invoked by SPACE key or it could be triggered by an idle timer.
>>
>> You type
>>
>> tf<-foo%in%boo==zoo
>>
>> and on next SPC it transforms into
>>
>> tf<- foo %in% boo == zoo
>>
>> Sounds pretty cool to me - doesn't interfere with the user's habits and
>> still corrects everything. It's even faster since you don't have to type
>> spaces :-)
>>
>> Best,
>> Vitalie.
>>
> 	[[alternative HTML version deleted]]
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 23 Jan 2012 22:40:13 +0100
> From: Andreas Leha<andreas.leha at med.uni-goettingen.de>
> To:<ess-help at stat.math.ethz.ch>
> Subject: Re: [ESS] Automatic insertion of space after comma in iESS
> 	mode
> Message-ID:<87vco26qte.fsf at med.uni-goettingen.de>
> Content-Type: text/plain
>
> Hi all,
>
> coming "late" to this, I just wanted to add to "the other side".  I also
> have (had?) the habit of introducing the space after the comma.  But I
> think, two days of coding with a consistent smart comma are enough to
> relearn.  So not much harm in activating the smart operators, which I
> consider a great feature!
>
> Best,
> Andreas
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 23 Jan 2012 22:44:24 +0100
> From: Aleksandar Blagoti?<aca.blagotic at gmail.com>
> To: Andreas Leha<andreas.leha at med.uni-goettingen.de>
> Cc: ess-help at stat.math.ethz.ch
> Subject: Re: [ESS] Automatic insertion of space after comma in iESS
> 	mode
> Message-ID:
> 	<CAL8dPfd3Td1kcgmQOCNie8crNoYW8wyUijBbJ9kfwaVx3jzLhw at mail.gmail.com>
> Content-Type: text/plain
>
> Yeah, IMO, problem solved, as I'm going to use smart-comma too. It was the
> inconsistency that was bugging me. Now it's fixed, thank god, and surely
> I'll redefine my habits, as I need to think about the days when I get old
> and my fingers get crooked because of arthritis. =)
>
> It's nice to type less... =)
>
> aL3xa
>
>
>
> On Mon, Jan 23, 2012 at 22:40, Andreas Leha<
> andreas.leha at med.uni-goettingen.de>  wrote:
>
>> Hi all,
>>
>> coming "late" to this, I just wanted to add to "the other side".  I also
>> have (had?) the habit of introducing the space after the comma.  But I
>> think, two days of coding with a consistent smart comma are enough to
>> relearn.  So not much harm in activating the smart operators, which I
>> consider a great feature!
>>
>> Best,
>> Andreas
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
> 	[[alternative HTML version deleted]]
>
>
>
> ------------------------------
>
> _______________________________________________
> ESS-help mailing list  DIGESTED
> ESS-help at r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
> End of ESS-help Digest, Vol 107, Issue 21
> *****************************************
No, I work for a government agency and hence I cannot choose what to 
install on the computer



More information about the ESS-help mailing list