Skip to content

calling renv deletes the package base #835

@markjrieke

Description

@markjrieke

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 of Warning: there is no installed package called tidyverse

I 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:

image

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:

  • How do I get RStudio working again?
  • What did I do incorrectly beforehand?

Apologies for the lack of a reprex, I can't get into RStudio right now unfortunately!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions