none
Microsoft R Open FAQ answer on default repo breaks packrat RRS feed

  • Question

  • The answer to "Can I change the default repository for Microsoft R Open?" at https://mran.microsoft.com/faq seems to break packrat. It causes the problems as discussed here: https://github.com/rstudio/packrat/issues/524. Is there a good solution?
    Thursday, June 20, 2019 1:07 PM

All replies

  • This seems to be a problem with the 'packrat' package not cleaning up properly during the installation if it aborts.

    I would try the suggestions mentioned in the above post - does this work for you?

    Remove the packrat/lib* and packrat/src folders
    Open an R shell
    Install packrat again with install.packages("packrat")
    Select another CRAN mirror with chooseCRANmirror — this one hopefully does not have the broken package
    Run packrat::restore() again

    Thursday, June 20, 2019 6:01 PM
  • Packrat is going to be obsolete at some point, see the replacement https://rstudio.github.io/renv/
    Monday, June 24, 2019 9:16 PM