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
calling renv deletes the package base
#835
Comments
|
update: I uninstalled/reinstalled R/RStudio & am now back in, but still not sure what I did beforehand (also a bit scared to attempt to recreate the issue!). For the time being, I'm going to just set the workflow to not depend on |
|
Unfortunately, without a reproducible example, it's very hard for me to know what went wrong. |
|
This problem is also happened in my environment repeatedly (6 times). Finish the process as usual and exit Rstudio and the console normally. The next time I launched the console, surprisingly, all the files in the "base" package (which was of course system installed, not under renv) were removed. The result is a "Fatal error" as shown in the image above. |
|
Do you see this issue with a prior release of |
|
Thank you for your quick reply. I reinstall prior release (0.13.1). I didn't have this issues when I was using version 0.13.1. Is it a problem specific to 0.14.x? |
|
It's possible, but until I'm able to reproduce the issue locally I won't know for sure. |
|
This happened to me while running |
|
Unfortunately I still don't have any good ideas as to what could've caused this to happen. If the problem occurs again please let me know and provide as much detail as possible. (Ideally, I would be able to reproduce this myself locally) |
|
I wasn't able to reproduce it a second time either, and my only hunch is that it involved the package installation failing due to the bad wifi connection I was on. |
|
#614 made it clear that one way this could happen is if something tries to recursively delete things in the temporary directory when the |
So I was following along some of the renv vingettes while trying to setup a github Action & I'm not quite sure what happened. I believe I called:
renv::status()renv::snapshot()renv::restore()I then tried to run the workflow, which depends on the
tidyverse, and I got an error along the lines ofWarning: there is no installed package called tidyverseI thought that was a bit strange so I ran
install.packages("tidyverse"), and it looks like it installed all the packages into the Repo itself. I tried to open a new studio session & it gave me this error:Now I can't open RStudio. I think what's going on is that RStudio is trying to reference the library folder that was created in the repo by renv (which just contains tidyverse packages at this point). All my other packages (and tidyverse packages) are still in the expected folder on my computer. I've got a twofold question:
Apologies for the lack of a reprex, I can't get into RStudio right now unfortunately!
The text was updated successfully, but these errors were encountered: