[ESS] Install experiences

Vitalie Spinu spinuvit at gmail.com
Thu Nov 28 23:41:54 CET 2013


Hi Frede, 

That is just awesome. I will look into how to merge all this into ESS as
soon as I can.

Thanks a lot, 

   Vitalie

 >>> Frede Aakmann Tøgersen on Thu, 28 Nov 2013 15:03:16 +0100 wrote:

 > Hi
 > To follow up my previous mail I just couldn't resist trying to do some lisp coding. So here is what I could come up with.

 > (setq reg-key "hklm\\software\\wow6432Node\\R-core\\R")

 > (defun R-versions (reg-key)
 >   (setq all (w32reg-read-key reg-key))

 >   (setq versions (nth 2 all))

 >   (dolist (key versions)
 >     (setq loop-key (concat reg-key "\\" key))
 >     (setq tmp (cddr (car (nth 1 (w32reg-read-key loop-key)))))
 >     (add-to-list 'result tmp))

 >   (nreverse result)
 > )

 > (setq Rversions (R-versions reg-key))

 > Now

 > Rversions's value is (("C:\\Programmer\\R\\R-3.0.0")
 >  ("C:\\Programmer\\R\\R-devel")
 >  ("C:\\Programmer\\R\\R-3.0.2")
 >  ("C:\\Program Files\\R\\R-3.0.1"))

 > I will leave profiling to an experienced lisp coder ;-)

 > 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 Vitalie Spinu
 >> Sent: 28. november 2013 03:52
 >> To: Paul Johnson
 >> Cc: Richard M. Heiberger; ess-help at r-project.org
 >> Subject: Re: [ESS] Install experiences
 >> 
 >> >>> Paul Johnson on Wed, 27 Nov 2013 19:54:29 -0600 wrote:
 >> 
 >> 
 >> [...]
 >> 
 >> > Concerning reading the registry, I expect that Gabor Grothendieck knows
 >> how
 >> > to read the registry to get the R location. We could learn how this is done
 >> > from the source code for NPPTOR and/or RStudio.  They both manage it. I
 >> > notice that RStudio seems to get it right, almost invariably, while NPPTOR
 >> > is only about 70% right.
 >> 
 >> 
 >> It looks like we are talking more than doing on this issue for 2 years
 >> already. It is just one system call, isn't it?
 >> 
 >> It is really unfortunate that almost all ESS core developers are Windows
 >> illiterates, but what can we do about it?
 >> 
 >> So please, could someone with bare minimum of knowledge of windows batch
 >> scripting look into Gabor's script at
 >> https://batchfiles.googlecode.com/svn/trunk/R.bat and isolate the system
 >> call that retrieves R location from the registry?
 >> 
 >> Let's solve this issue once and forever.
 >> 
 >> Vitalie
 >> 
 >> ______________________________________________
 >> ESS-help at r-project.org mailing list
 >> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list