Re: [Rd] the %ProgramFiles% variable

2008-09-02 Thread Henrique Dallazuanna
You can use this: Sys.getenv("PROGRAMFILES") or shell("echo %PROGRAMFILES%") shell("echo %PROGRAMFILES%", inter = T) On Tue, Sep 2, 2008 at 9:56 AM, Kjell Konis <[EMAIL PROTECTED]> wrote: > Hello, > > I want to use the %ProgramFiles% variable in a Sys.setenv (R 2.7.2, > Windows) but it alway

[Rd] the %ProgramFiles% variable

2008-09-02 Thread Kjell Konis
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%") %Pro