search for: pathupload

Displaying 1 result from an estimated 1 matches for "pathupload".

2009 Jul 30
2
Relative paths in R?
...R CMD BATCH to run a file of R commands (from php for info) This file of R commands contains a line to source a configuration file "source('path/conf.R')" In this configuration file I define some variables, e.g. the path of some file (uploaded before this R CMD using php) "PathUpload <- 'path/uploads'" What I would like to achieve is to make this "PathUpload" relative to were R is at the time I launch it using the R CMD BATCH command so I would end up with something like "PathUpload <- './uploads'" (as in php in this exampl...