Lucia,

The problem is that 32-bit R and 64-bit R have the same date.  Therefore
newest is potentially ambiguous.
I think the easiest way is to define a new function R64 in your .emacs that
always starts the 64-bit version.
The drawback is that at present you will need to manually redefine R64 when
you update R.
Here is the function for the current released version R-2.13.0


(defun R64 (&optional start-args) "Call the R version 'R-2.13.0-64bit' using
ESS.
This function was generated by `ess-r-versions-create'." (interactive "P")
(let ((inferior-R-version "R-2.13.0-64bit") (inferior-R-program-name
"c:/PROGRA~1/R/R-213~1.0/bin/x64/Rterm.exe")) (R start-args)))

Once this has been run (either in .emacs or by C-x C-e after the last
paren), then M-x R64 will start the 64-bit
version of R.

We should be able to generate R64 and R32 automatically in a future release
of ESS.

Rich
On Tue, Jun 7, 2011 at 6:25 PM, Lucia Lam <lucia@cmmt.ubc.ca> wrote:

> Hi everyone,
>
> How can I change the default setting of ESS to open a 64 bit R session? I
> usually start my R sessions by opening a .R file in the work folder and c-c
> c-n at the first line. At this point, ESS will prompt me: ESS [S(R): R
> (newest)] starting data directory? c:/Windows/System32/, to start R in the
> work folder. However, by default ESS opens a 32 bit R session (as called by
> R-newest). Could I change what R-newest calls?
>
> I'm currently using R 2.12.2 on a 64bit Windows 7 Enterprise machine using
> vincent goulet's emacs 23.3 modified 1.exe distribution.  I can open a 64
> bit R session by going through the ESS menu and start process > other > R
> 2.12.2 - 64 bit.
>
> I tried adding the following to my .emacs file but couldn't fix the issue.
> (setq-default inferior-R-program-name "C:\\Program
> Files\\R\\R-2.12.2\\bin\\x64\\Rterm.exe");
>
> Thanks in advance for any help.
> Lucia
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

