[R] Looking up the directory a file is located in

Cliff Clive cliffclive at gmail.com
Thu Nov 18 01:00:05 CET 2010


Basically I'm just looking for a command that can look up the name of the
directory of the script that is running.  If I move or copy the script to
another directory, it should be able to read the name of the new directory
without me having to edit the code.

Once I have identified the directory, I can insert it into the setwd()
command and continue with my program.
-- 
View this message in context: http://r.789695.n4.nabble.com/Looking-up-the-directory-a-file-is-located-in-tp3047649p3047878.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list