When I click "Build & Reload" on the Build tab within RStudio, I get the following error:
==> devtools::document(roclets=c('rd', 'collate', 'namespace'))
Error in loadNamespace(name) : there is no package called 'devtools'
Calls: suppressPackageStartupMessages ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
Exited with status 1.
But when I just enter devtools::document(roclets=c('rd', 'collate', 'namespace'))
directly into the console, it works.
In addition, if I uncheck "Build & Reload" under "Automatically roxygenize when running:" in the Build Tools -> Roxygen config, the error disappears.
I've installed the latest devtools
with devtools::install_github("hadley/devtools")
. I'm using Windows.
If anyone has an suggestions, thank you in advance!
R --vanilla
(so that my.libPaths()
was the "default") and install devtools (again) to the default personal library (~/R/x86_64-pc-linux-gnu-library/3.2
) – Shaefer