I use ess to run R and have encountered an annoying change that now when I start an R process with ess it defaults to starting in what is apparently the root of the project not the directory of the file in the buffer I'm in. For example if I'm editing a file in an R package that is in the ~/projects/my_package/tests/
directory and press C-c r
I am prompted with:
"R starting project directory? ~/projects/my/package/"
But a previous behaviour which I think is more intuitive was for the default to start in the directory that the file i saved (~/projects/my_package/tests/
).
I read this: https://ess.r-project.org/Manual/ess.html#Customizing-startup and interpret that ess determines the working directory in some way that I am not happy with. Is there a way to change this behaviour?
ess-startup-directory
. The documentation listed above is incomplete - ESS now checks to see if you are in a "project" before deciding which directory to use, that might be causing your problem – Tyler Jul 31 '23 at 15:02