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

Error: cannot change working directory #122

Open
josh1400 opened this issue Dec 20, 2019 · 2 comments
Open

Error: cannot change working directory #122

josh1400 opened this issue Dec 20, 2019 · 2 comments

Comments

@josh1400
Copy link

A few months ago, the top right corner of Radiant started saying "Base dir: Home" regardless of what my working directory was set to. At the same time, I stopped being able to save into any of the folders I had been using before. I was only able to select files in a folder called "Home" or in my OS (C:) folder. I worked around this nuisance until today.

Now, I can't run any code even if it's a brand new session with your sample code loaded. I just get the following "Error: cannot change working directory". Any idea what the issue is?

@vnijs
Copy link
Contributor

vnijs commented Dec 21, 2019

If you are in an Rstudio project (highly recommended) then Radiant will use the project directory as the working directory. Radiant should, however, pick-up the working directory. I just checked, and your are right, that it now defaults to the home directory when not in a project. I'll work on that . Thanks for reporting!

I'm not sure what is going on with the "cannot change working directory" issue. Can you provide more information (e.g., all output in Rstudio and screenshots showing when you get the error).

I assume you are running version 1.3.0 of all Radiant packages right?

@vnijs
Copy link
Contributor

vnijs commented Dec 21, 2019

Just pushed a fix for the "Base dir: Home" issue if you set a different working directory. Please update radiant as usual and try it out. This should work as you expected but I'd still recommend using Rstudio projects as much as possible. See the link below for a discussion:

https://r4ds.had.co.nz/workflow-projects.html

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