[ESS] Finding 64-bit R versions on Windows

Martin Maechler maechler at stat.math.ethz.ch
Fri Jul 11 10:05:55 CEST 2014


>>>>> Frede Aakmann Tøgersen <frtog at vestas.com>
>>>>>     on Wed, 9 Jul 2014 14:48:09 +0200 writes:

    > 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..

Yes, Vitalie should really devote to a different part of (the
development / unstable version of) ESS, (the partly broken indentation)...

but Stephen Eglen and I (with access to a Windows-Server from my
(Linux) desktop) could really help with getting this --- very reasonable
feature request --- into ESS.

Martin

    > 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
    .....


    >> -----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

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



More information about the ESS-help mailing list