Skip to content
Prev 87356 / 398502 Next

relative referencing for filenames &etc

On Tue, 28 Feb 2006, Uwe Ligges wrote:

            
Another idea is to use environment variables.  So if in an R function I 
have

     xls_file <- file.path(Sys.getenv("DATADIR"), "blah.xls")

I can R run from a shortcut, appending DATADIR=J:/foo/bar to the command 
line.