Re: [R] How do I know where is R? - VB Programming

2009-07-15 Thread Peter Dalgaard
Duncan Murdoch wrote: On 14/07/2009 7:22 PM, Haoda Fu wrote: Dear all - Is there anyone know how to let VB or C# know where I install R automatically(i.e. auto detect R directory)? On Windows if you run the installer it will record its location in the registry, under *\Software\R-core\R\,

Re: [R] How do I know where is R? - VB Programming

2009-07-15 Thread Gabor Grothendieck
This works on Linux (at least under bash shell) and also on Windows Vista and presumably earlier versions of Windows as well: R --vanilla --slave -e R.home() but the R part at the beginning does have the problem that it only works if R is on your path. If, on Windows, you normally double click

[R] How do I know where is R? - VB Programming

2009-07-14 Thread Haoda Fu
Dear all - Is there anyone know how to let VB or C# know where I install R automatically(i.e. auto detect R directory)? Many thanks! Best, Haoda __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] How do I know where is R? - VB Programming

2009-07-14 Thread Duncan Murdoch
On 14/07/2009 7:22 PM, Haoda Fu wrote: Dear all - Is there anyone know how to let VB or C# know where I install R automatically(i.e. auto detect R directory)? On Windows if you run the installer it will record its location in the registry, under *\Software\R-core\R\, where * is HKLM or

Re: [R] How do I know where is R? - VB Programming

2009-07-14 Thread Gabor Grothendieck
For some examples of using the R registry entries see Rcmd.bat, Rversions.bat and Rversions.hta in the batchfiles distribution whose home page is: http://batchfiles.googlecode.com On Tue, Jul 14, 2009 at 7:22 PM, Haoda Fufu...@yahoo.com.cn wrote: Dear all - Is there anyone know how to let VB