[ESS] R 64 bit in Windows

Martin Maechler maechler at stat.math.ethz.ch
Thu Jun 9 08:56:26 CEST 2011


>>>>> Richard M Heiberger <rmh at temple.edu>
>>>>>     on Wed, 8 Jun 2011 11:14:32 -0400 writes:

    > Lucia, The problem is that 32-bit R and 64-bit R have the
    > same date.  Therefore newest is potentially ambiguous. 
Yes.
But the reasoning has been that ESS here chooses the same default
as "R outside ESS" chooses on Windows, and that's 32-bit.



    > I think the easiest way is to define a new function R64 in
    > your .emacs that always starts the 64-bit version.  

No !!!  Rich you forgot that we've been here, done that, many
weeks ago!! 

I had spent a coupld of hours on this back then, and we now
already *do* generate the R-<...>  commands  {note the extra "-"} :

For me, on our Windows terminal server, if I type
    
    M-x R [Tab]      	([Tab] = Tabulator key, for command completion),

I get a buffer named  *Completion* with the following
"clickable" content :
----------------------------------------------------------------------

R 	R-2.10.1 	R-2.11.1 	R-2.12.0-32bit
R-2.12.0-64bit 	R-2.12.2-32bit 	R-2.12.2-64bit 	R-2.13.0-32bit
R-2.13.0-64bit 	R-2.6.2 	R-2.8.1 	R-2.9.2
R-fix-T-F 	R-mode 	R-newest 	R-site-search
R-transcript-mode 	Rd-mode 	Rnw-mode

----------------------------------------------------------------------

Now do note that from R 2.12.x on, there's always a  
*-32bit and a *-64bit version..

Martin Maechler, ETH Zurich


    > 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 at 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 at r-project.org mailing list
    >> https://stat.ethz.ch/mailman/listinfo/ess-help
    >> 

	[[alternative HTML version deleted]]

    > ______________________________________________
    > ESS-help at r-project.org mailing list
    > https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list