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
RStudio Server crash, restart requires project reopen to load packrat libs #549
Comments
|
What are the library paths after the restart? (What is the output of I suspect that RStudio is perhaps overriding the library paths normally set by Packrat or something similar in this case. |
|
The output of |
|
That's the output when you can't load the package? (I'm just surprised because my guess here is that the library paths are not being correctly restored after a crash, and so I would've expected different library paths) |
|
That is weird. I was able to reproduce this error for one project until I called |
|
I have had that issue repeatedly over the past months, but after running I do still run into one part of this issue: if I modify any file in the project's R directory after a crash-restart and then attempt to save the file, I get an error: "Error Saving File: No such file or directory". When I run |
In using RStudio Server with packrat, if the session crashes, a dialog box will pop up mentioning "The previous R session was abnormally terminated due to an unexpected crash. You may have lost workspace data as a result of this crash." ; however when it does restart, the packrat project libraries look like they are available, but they cannot be loaded with library(xyz). They are correctly available if I reopen the project (ie. .Rprofile can run
source("packrat/inti.R")), and packrat can access the project libraries.A reprex would be:
.Call("abort")It looks like the working directory is also the user's home directory after the crash. I'm not sure if that may be playing a role here.
The text was updated successfully, but these errors were encountered: