Home > Software engineering >  Errors downloading R package for "Efficient R Programming" by Gillespie and Lovelace
Errors downloading R package for "Efficient R Programming" by Gillespie and Lovelace

Time:03-24

the above-referenced book has an associated R package hosted on github containing datasets and functions used in the book.

The book states this code is used to install the package: devtools::install_github("csgillespie/efficient", build_vignettes = TRUE, dependencies = TRUE)

I receive the following message and errors when running the code:

SUMMARY: processing the following file failed: 'solutions07.Rmd'
Error: Vignette re-building failed.
Execution halted Error: Failed to install 'efficient' from GitHub: System command 'Rcmd.exe' failed, exit status: 1, stdout & stderr were printed

Do you have any insight into whether the package itself is causing the error versus a local issue on my end? Or how I might figure out the cause and fix for this issue? I appreciate any help you can provide.

This URL provides the section in the online book I am referring to. https://csgillespie.github.io/efficientR/introduction.html#book-resources

CodePudding user response:

If I run the following code it works:

devtools::install_github("csgillespie/efficient", build_vignettes = TRUE, dependencies = TRUE)

devtools::install_github("csgillespie/efficientR")

I would suggest to reinstall the devtools package using the following code:

remove.packages("devtools")

install.packages("devtools", dependencies = TRUE)

library(devtools)
  •  Tags:  
  • r
  • Related