It does obviously - very silly of me to ask
PathUpload <- paste(getwd(),"/uploads",sep="") Many thanks Julien > CC: r-help@r-project.org > From: mailinglist.honey...@gmail.com > To: j_cuisin...@hotmail.com > Subject: Re: [R] Relative paths in R? > Date: Thu, 30 Jul 2009 09:41:55 -0400 > > Hi, > > (Sorry, noticed I didn't CC r-help originally) > > On Jul 30, 2009, at 8:16 AM, julien cuisinier wrote: > > > Dear list, > > > > I use the 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 example) > > > > I could not find anything in help or previous posts...any feedback > > on feasibility appreciated > > > Does ?getwd help? > > -steve > > -- > Steve Lianoglou > Graduate Student: Computational Systems Biology > | Memorial Sloan-Kettering Cancer Center > | Weill Medical College of Cornell University > Contact Info: http://cbio.mskcc.org/~lianos/contact _________________________________________________________________ [[elided Hotmail spam]] [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.