[txmt-dev] Re: Problem with a patch in last alphas

Allan Odgaard mailinglist at textmate.org
Wed May 29 02:04:33 UTC 2013


On May 28, 2013, at 20:03, Grzeg <ggoralski at 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



More information about the textmate-dev mailing list