Configure renv to ignore system library

When I am using renv to manage packages for a project, I've noticed that if a matching version for a package from the lockfile is found in the system library, it is not installed when renv::restore() is called. It then doesn't appear in the "project library". Of course everything works by loading from the system library but I would have expected it to install everything to the project's folder.

I can get renv::restore() to install to the project library by using the library argument of restore.

My question is why does renv do this by default, and can I configure renv to ignore the system library?

You can accomplish this by enabling the renv sandbox -- see:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.