On May 28, 2013, at 20:03, Grzeg <ggoral...@gmail.com> wrote:

> I run the script by Cmd+R
> Inside the script I try to load by a command: data <-
> read.csv("./datafile.csv", sep=',')
> a file with data from the same directory where the script is but script
> cannot find a datafile.

OK, so the same issue will show if you run the script from a terminal without 
first changing the terminal’s working directory to that of the script.

For a solution see 
http://stackoverflow.com/questions/3452086/getting-path-of-an-r-script

_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to