When I try and build my package and at the same time generate documentation, I see:
Error in (function (dep_name, dep_ver = NA, dep_compare = NA) : Dependency package tidyr not available. Calls: suppressPackageStartupMessages ... <Anonymous> -> load_all -> load_imports -> mapply -> <Anonymous> Execution halted Exited with status 1.
I think I figured out that this is happening when I build my package because I don't use the standard R package directory. But, I only got the above error because I started following the second answer to second StackOverflow question linked below. I used to see that devtools wasn't installed. But installing it on a vanilla R call made that work. Is there now way to just make Rstudio use whatever R package locations are in .libPaths?