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?