I've often missed the ability to get the directory of the currently running script. It's actually been possible for a while:
FILE <- (function() { attr(body(sys.function()), "srcfile") })() thanks to Duncan's recent changes to file parsing. This is pretty useful for sourcing in files relative to the current script, rather than the working directory. Hadley -- http://had.co.nz/ ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel