Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 Directory of file is not used as current working directory

open
nobody
None
5
2011-06-19
2011-06-19
dersven
No

When I open a file by double clicking and then type getwd() into the R-console, it gives my home-directiry and not the directory of the file. This happens although i checked "Should new R consoles use the current document's directo[...]" (I can't read the rest of the line, since the preference window is not resizable - maybe thats another bug).

When I start gedit via the terminal ("gedit filename.R") and then type getwd() into the R console within gedit, the correct working directory is used. But this is only when I'm in the directry of the file ("gedit path/to/folder/filename.R") does not work.

I'm using "rgedit 0.7.1.0" and "gedit 2.30.4" on Ubuntu Linux 11.04

Discussion