When I run that command I receive the following error:
> renv::install("mypackage")
Error: package 'mypackage' is not available
However, when I specify the full path to the location of the package (in my default package location), it installs correctly:
> renv::install("C:/R/Packages/mypackage")
Installing mypackage [0.1.0] ...
OK [copied local binary]
I wonder if this has to do with where renv is looking for packages. In my usual instances of R, my .libPaths() is::
> .libPaths()
[1] "C:/R/Packages" "C:/R/R-4.0.2/library"
However, in this instance when using renv, my .libPaths() is::
> .libPaths()
[1] "D:/Documents/GitHub/mypackage/renv/library/R-4.0/x86_64-w64-mingw32" "C:/Users/myusername/AppData/Local/Temp/RtmpumbqYa/renv-system-library"
Any ideas for how to get renv to look where my R instances typically look for packages ("C:/R/Packages") to identify those available for installation (including this package that I'm developing)? Thanks!