Skip to content
Prev 87390 / 398502 Next

relative referencing for filenames &etc

I think the idea of the prior respondents was that R_DATADIR
would be set outside R and the application and just fetched from
an environment variable inside the application so that the application
is independent of it.

If, in fact, your R code knows the data directory anyways, you could
just do

  datadir <- "J:/foo/bar"
  file.path(datadir, "rawdata.xls")
On 2/28/06, Greg Tarpinian <sasprog474474 at yahoo.com> wrote: