Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build & Reload in RStudio on Windows: devtools::document() says devtools not found

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!

like image 912
Jeff Erickson Avatar asked Mar 31 '15 15:03

Jeff Erickson


People also ask

What kind of company is build com?

Build.com, Inc. operates as an online home improvement retailer in the United States. Its online stores specialize in plumbing, lighting, door hardware, and furniture, as well as heating, ventilation, air conditioning, and cooling equipment.

What is build with Ferguson?

Build.com is an online home improvement retailer and subsidiary of Ferguson plc. It sells bathroom, kitchen and lighting hardware, appliances and other supplies. The company is headquartered in Chico, California, United States.

Is build with Ferguson the same as Ferguson?

Build.com is a subsidiary of Ferguson PLC, which is why you will see the Ferguson name both on the build.com website and the build.com credit card.


1 Answers

I had to uncheck "Build & Reload" under "Automatically reoxygenize when running:" in the Build Tools -> Roxygen Configure menu. Installing devtools in the program files/r/3.2.3/lib helped, but it still wanted all the dependencies there as well. Using packrat didn't seem to help either..

like image 115
Alexander Shenkin Avatar answered Oct 12 '22 23:10

Alexander Shenkin