I'm trying to develop a new package. I follow the Rstudio dialog options (File -> New Project -> New Directory -> R Package) to create a new package. When I leave the option "use
renv with this project" unchecked, I can build the default template project fine and it loads correctly. However, when I check the option to "use
renv with this project", I get the following error when I try to build the default template project:
> library(mypackage) Error in library(mypackage) : there is no package called ‘mypackage’
I checked my system package directory, and the package appears to be there. So, I wonder if it's a challenge with
renv getting to install it locally in the project folder. I'm new to package development, so I apologize if I'm missing something basic. Your help is greatly appreciated.