15 Jun 2012 18:43
Windows suggestion: ask registry for location of Rterm.exe
Paul Johnson <pauljohn32 <at> gmail.com>
2012-06-15 16:43:11 GMT
2012-06-15 16:43:11 GMT
I have a new idea on the "Rterm not found" problem that we see in Windows sometimes. Ask the registry! I wish I could do all this and show you the answer, but can't yet. Before I forget what I've learned, I want to tell you, on the off chance that this is an easy-ish problem for one of you. The "Rterm not found" problem with Emacs-ESS is fairly frequent for us. Working with a class of 50 people, I suppose that 10-20 will have trouble with Emacs-ESS because their R is not installed in the usual place. Emacs-ESS looks some places, but doesn't always find it. It doesn't find Rterm.exe if we install R in C:\Program Files\R, for example (no R version subdirectory). I noticed that Rstudio and Notepad++(with NPPtoR) have no trouble finding Rterm, no matter where it is installed. So I started checking into how those other editors do it, and the answer seems to be they ask the registry for the newest R installation, unless user specifies otherwise. It appears to me the registry access code in the batchfiles project may be the most immediately relevant. 1. batchfiles I learned of an R for Windows project called "batchfiles" which has various idioms to find R by asking the registry. https://code.google.com/p/batchfiles I think it should be on the front of "runemacs" or such. It would run every time Emacs-ESS starts, it would respect R_HOME in the user's(Continue reading)
RSS Feed