[ESS] Finding 64-bit R versions on Windows

Frede Aakmann Tøgersen frtog at vestas.com
Wed Jul 9 14:48:09 CEST 2014


Hi

Actually this has been on the agenda for some time. I did some on Windows platform (see https://stat.ethz.ch/pipermail/ess-help/2013-November/009627.html and the whole thread) but I guess Vitalie Spinu has been to busy to get to this and incorporate that into current ESS version..

I will happily participate in making this work. Although my lisp skills are not that good.

Yours sincerely / Med venlig hilsen


Frede Aakmann Tøgersen
Specialist, M.Sc., Ph.D.
Plant Performance & Modeling

Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog at vestas.com
http://www.vestas.com

Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender. 


> -----Original Message-----
> From: ess-help-bounces at r-project.org [mailto:ess-help-bounces at r-
> project.org] On Behalf Of Kevin Coombes
> Sent: 9. juli 2014 14:37
> To: Stephen Eglen
> Cc: ESS Help Mailing List
> Subject: Re: [ESS] Finding 64-bit R versions on Windows
> 
> M-x R-newest on Windows (at least on my machine) always finds the newest
> 32-bit version.
> 
> I can help test whatever gets developed, but it would certainly be
> useful is someone else also tested it!
> 
>    --Kevin
> 
> On 7/9/2014 7:09 AM, Stephen Eglen wrote:
> > hi Kevin,
> >
> > I think we could add something like this, but as I'm not on Windows, we
> > might need some help testing it (+ Rich?).  On unix we already have "M-x
> > R-newest"; what does that do for you on Windows?
> >
> > Perhaps on the mac we also have the choice of 64 or 32 bit?  In which
> > case we could have a variable like
> >
> > (defcustom ess-prefer-64bit t)
> >
> > to allow us to set a preference for 64 bit.
> >
> >
> > Some help with elisp below:
> >
> >
> >> ;; This hack finds the latest 64-bit version.
> >> (defun R64 (&optional start-args)
> >>     "Call the latest 64-bit version of R"
> >>     (interactive "P")
> >>     ;; sweep through the list of R-version commands
> >>     ;; to find the 64-bit ones
> >>     (defun m64 (target)
> >>       "remove string '-64bit' from target"
> >>       (if (string-match "-64bit" target)
> >>       (replace-match "" t t target)
> >>         ))
> > if you have an (if ) with no else portion, as you do here, just rewrite
> > it as:
> >
> >    (when (string-match "-64bit" target)
> >       (replace-match "" t t target))
> >
> >
> >
> >
> >>      ;; now use the newest version that matches a 64-bit version
> >>      (defun krc-in-newest (source)
> >>        (if source
> >>        (if (string-match source ess-newest-R)
> >>            (concat source "-64bit")
> >>          nil)
> >>          nil))
> > that can probably be simplified:
> >
> >    (when (and source (string-match source ess-newest-R))
> >      (concat source "-64bit"))
> >
> >
> > all untested though of course!
> 
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list