[ESS] Telling ess where to look for R

Thompson,Paul Paul.Thompson at SanfordHealth.org
Tue Jan 22 18:03:31 CET 2013


This illustrates a problem or difficulty I have with emacs. You have a nice example of customization. 

Looking at the ess.pdf manual which I find installed as part of ESS V 12.09-1, installed via the V Goulet mod of emacs, I look at the TOC. I find that P. 93 discusses "Customizing ESS". It states to find customization you type M-x customize-group ret ess. I access a file which invokes ess (a SAS source) and do this, which brings up the various customize dialogs. I looked for R, and find it as a dialect of S.

However I do not find the specific code ess-directory-containing-R in any place. How is a non-developer to find these variables?

This is not your problem. This is a problem that I have with emacs generally. There are few good complete listings of variables. It's all passed word of mouth from one person to another.

-----Original Message-----
From: ess-help-bounces at r-project.org [mailto:ess-help-bounces at r-project.org] On Behalf Of Rodney Sparapani
Sent: Tuesday, January 22, 2013 10:26 AM
To: Kevin R. Coombes
Cc: Richard M. Heiberger; ess-help at r-project.org
Subject: Re: [ESS] Telling ess where to look for R

On 01/22/2013 10:08 AM, Kevin R. Coombes wrote:
> My .emacs file contains the following two lines:
>      (setq ess-directory-containing-R "C:")
>      (require 'ess-site)
>
> This works to find versions of R stored in C:\R\R-2.15.1, etc.  On my 
> machine, it does NOT work if you interchange the order of the two lines.
> After the ess-site code is loaded, something has already been set that 
> does not get changed when you set the ess-directory-containing-R variable.
>
>    -- Kevin

That's correct; and that's how I usually set ESS variables myself.
But, since there are almost always options when dealing with emacs, you can also use the customize facility to set 'ess-directory-containing-R.  The down side of customize is that some ESS variables can not be customized.

--
Rodney Sparapani, PhD  Center for Patient Care and Outcomes Research
Sr. Biostatistician               http://www.mcw.edu/pcor
4 wheels good, 2 wheels better!   Medical College of Wisconsin (MCW)
WWLD?:  What Would Lombardi Do?   Milwaukee, WI, USA

______________________________________________
ESS-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
-----------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
privileged and confidential information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.




More information about the ESS-help mailing list