[ESS] ESS M-x R failing in a Windows installation
Jeremie Juste
jerem|eju@te @end|ng |rom gm@||@com
Wed Mar 10 20:29:32 CET 2021
Hello,
I suspect there is a bug regarding the variable ess-rterm-version-paths
It is now available in ess-custom.el but is nil by default.
This should not be the case. It should have the value
(setq ess-rterm-version-paths
(ess-flatten-list
(delete-dups
(if (not ess-directory-containing-R)
(if (getenv "ProgramW6432")
(let ((P-1 (getenv "ProgramFiles(x86)"))
(P-2 (getenv "ProgramFiles(x64)")))
(nconc
;; Always 32 on 64 bit OS, nil on 32 bit OS
(ess-find-rterm (concat P-1 "/R/") "bin/Rterm.exe")
(ess-find-rterm (concat P-1 "/R/") "bin/i386/Rterm.exe")
;; Keep this both for symmetry and because it can happen:
(ess-find-rterm (concat P-1 "/R/") "bin/x64/Rterm.exe")
;; Always 64 on 64 bit OS, nil on 32 bit OS
(ess-find-rterm (concat P-2 "/R-4.03/") "bin/Rterm.exe")
(ess-find-rterm (concat P-2 "/R-4.03/") "bin/i386/Rterm.exe")
(ess-find-rterm (concat P-2 "/R-4.03/") "bin/x64/Rterm.exe")))
(let ((PF (getenv "ProgramFiles")))
(nconc
;; Always 32 on 32 bit OS, depends on 32 or 64 process on 64 bit OS
(ess-find-rterm (concat PF "/R/") "bin/Rterm.exe")
(ess-find-rterm (concat PF "/R/") "bin/i386/Rterm.exe")
(ess-find-rterm (concat PF "/R/") "bin/x64/Rterm.exe"))))
(let ((PF ess-directory-containing-R))
(nconc
(ess-find-rterm (concat PF "/R/") "bin/Rterm.exe")
(ess-find-rterm (concat PF "/R/") "bin/i386/Rterm.exe")
(ess-find-rterm (concat PF "/R/")
"bin/x64/Rterm.exe")))))))
as in ess-r-mode.el. Please check again as I may have modified it.
Best regards,
Jeremie
On Wednesday, 10 Mar 2021 at 15:40, Sparapani, Rodney via ESS-help wrote:
> Hi Jeremie:
>
> As you say, Windows installs do depend on the user’s preferences.
> However, in ancient ESS (circa 2004), we coded around this by
> going to the Windows registry. However, I have rarely used
> Windows since so I can’t say how that approach might be
> used today (or if it is, how it might be failing). I think a big
> issue is that few (if any) ESS developers are using Windows.
> Rich was probably the rear guard and he switched to Mac.
>
> PS. the old registry discussions are probably in the archives
> https://stat.ethz.ch/pipermail/ess-help/
>
> --
> Rodney Sparapani, Associate Professor of Biostatistics
> Chair ISBA Section on Biostatistics and Pharmaceutical Statistics
> Institute for Health and Equity, Division of Biostatistics
> Medical College of Wisconsin, Milwaukee Campus
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
--
Jeremie Juste
More information about the ESS-help
mailing list