This might be a relatively simple question. When using Packrat without RStudio, does it set the search path automatically or do I need to manually set it?
I reproduce a Packrat project (no .Rproj file) from within the respective working-directory with: packrat::restore() followed by packrat::init().
After initialization of a restored project I would assume Packrat sets my search path automatically. However, my only search path points to the System Lib:
> .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.4/Resources/library"
Do I need to change it manually with .libPaths(packrat::lib_dir()) or is there a different solution? Feels like I'm missing a piece...
Many thanks! lars