On Thu, Nov 18, 2010 at 10:26 AM, Cliff Clive <cliffcl...@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]] ______________________________________________ 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.