Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default directory changed? #1187

Closed
sfg opened this issue Feb 11, 2022 · 3 comments
Closed

default directory changed? #1187

sfg opened this issue Feb 11, 2022 · 3 comments

Comments

@sfg
Copy link

sfg commented Feb 11, 2022

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 sfg closed this as completed Feb 11, 2022
@sfg
Copy link
Author

sfg commented Feb 11, 2022

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

@vspinu vspinu reopened this Feb 11, 2022
@vspinu
Copy link
Member

vspinu commented Feb 11, 2022

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

vspinu added a commit that referenced this issue Feb 13, 2022
  .. and make it to take precedence over ess-startup-directory-function.

  Document the usage.
@vspinu
Copy link
Member

vspinu commented Feb 13, 2022

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).

@vspinu vspinu closed this as completed in f3c196d Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants