emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
623 stars 162 forks source link

default directory changed? #1187

Closed sfg closed 2 years ago

sfg commented 2 years ago

When starting a R process from a Rnw file, R starts in the parent, not in the directory of the file. How can I change this to the previous behavior?

According to #461 I added

(setq project-find-function nil) (setq ess-startup-directory nil)

but this does not work. I use ess version 20220201.816 from MELPA.

sfg commented 2 years ago

Seems to be a problem on my side: this only happens in one of my directories.

vspinu commented 2 years ago

let's keep this open. Wee need a good defcustom to control this behavior. (#1186)

vspinu commented 2 years ago

I have made some changes. You can do now (setq ess-startup-directory 'default-directory) to always start int he current directory (the old behavior).