[R] How do I know where is R? - VB Programming
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Wed Jul 15 08:13:43 CEST 2009
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\, where * is HKLM or HKCU, depending
> on what permissions the user had who installed it. But some users don't
> run the installer (maybe because someone else installed it on a network,
> or they built it themselves) so that isn't completely reliable.
On Unix/Linux we have
$ R RHOME
/usr/lib/R
but same thing doesn't work with Rterm on Windows AFAICS. I wonder if it
shouldn't?
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list