[Rd] the %ProgramFiles% variable

Kjell Konis kjell.konis at epfl.ch
Tue Sep 2 14:56:34 CEST 2008


Hello,

I want to use the %ProgramFiles% variable in a Sys.setenv (R 2.7.2,  
Windows) but it always seems to get handled literally. For instance,  
in cmd.exe I get what I want


C:\Documents and Settings\user>echo %ProgramFiles%
C:\Program Files


but in R


 > system("echo %ProgramFiles%")
%ProgramFiles%


nope. Is there a way to use %ProgramFIles% or get the corresponding  
path?

Thanks,
Kjell



More information about the R-devel mailing list