oun...@r-project.org] On Behalf Of Duncan Murdoch
> > Sent: Monday, February 22, 2010 1:49 PM
> > To: Rob Forler
> > Cc: r-help@r-project.org
> > Subject: Re: [R] relative file path
> >
> > On 22/02/2010 3:44 PM, Rob Forler wrote:
> > > Hello,
> &g
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch
> Sent: Monday, February 22, 2010 1:49 PM
> To: Rob Forler
> Cc: r-help@r-project.org
> Subject: Re: [R] relative file path
>
> On 22/02/201
On 22/02/2010 3:44 PM, Rob Forler wrote:
Hello,
Is there a way to find where a script is located within a script? getwd()
doesn't do what I want because it depends on where R was called from. I want
something like source("randomFile") and within randomFile there is a
function called whereAmI() w
There was a brief discussion about this on stackoverflow -
http://stackoverflow.com/questions/1815606/rscript-determine-path-of-the-executing-script.
-
Try http://prettygraph.com Pretty Graph , the easiest way to make R-powered
graphs on the web.
--
View this message in context:
http://n4.
Not directly what you're asking for, but sourceTo() of R.utils has an
argument 'chdir=FALSE' that when TRUE will change the working
directory to the directory of the script being evaluated.
/Henrik
On Mon, Feb 22, 2010 at 9:44 PM, Rob Forler wrote:
> Hello,
>
> Is there a way to find where a scr
Hello,
Is there a way to find where a script is located within a script? getwd()
doesn't do what I want because it depends on where R was called from. I want
something like source("randomFile") and within randomFile there is a
function called whereAmI() which returns c:\blah\blah2\randomFile.R
In
6 matches
Mail list logo