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