On Thu, Nov 18, 2010 at 10:26 AM, Cliff Clive <cliffclive@gmail.com> wrote:

> In Python any time you run a script, there is a built-in "__file__"
> variable
> that can tell you the file name of the script itself.  It would be nice to
> have a feature like this in R.
>
R has that feature.

source("c:/myfullpath/myfile.r", chdir=TRUE)

See ?source for details.

Rich

	[[alternative HTML version deleted]]

