pega-datascientist-tools
pega-datascientist-tools copied to clipboard
Error message when installing on clean R instance
I had trouble installing on a new device with a new R instance, I got the following error message:
> library(devtools)
Loading required package: usethis
> install_github("pegasystems/cdh-datascientist-tools/r", build_vignettes=TRUE)
Downloading GitHub repo pegasystems/cdh-datascientist-tools@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/pegasystems/cdh-datascientist-tools/tarball/HEAD' failed
I found this GitHub issue describing the solution that worked for me: https://github.com/r-lib/remotes/issues/130#issuecomment-735354677
Adding this line of code made it work without any issues:
> options(download.file.method = "libcurl")
> install_github("pegasystems/cdh-datascientist-tools/r", build_vignettes=TRUE)
Downloading GitHub repo pegasystems/cdh-datascientist-tools@HEAD
Installing 68 packages: colorspace, RColorBrewer, munsell, labeling, farver, scales, isoband, gtable, gridExtra, ggplot2, viridisLite, base64enc, backports, htmltools, htmlwidgets, checkmate, jpeg, png, systemfonts, tinytex, bit, progress, tidyselect, tzdb, hms, bit64, Rcpp, generics, dplyr, selectr, rmarkdown, rematch, cellranger, vroom, tidyr, broom, readr, forcats, uuid, ids, googledrive, gargle, data.table, DBI, blob, assertthat, viridis, htmlTable, latticeExtra, Formula, svglite, webshot, rvest, plyr, reprex, readxl, modelr, lubridate, haven, googlesheets4, dtplyr, dbplyr, Hmisc, kableExtra, XML, fasttime, pROC, tidyverse
Perhaps we could add this line to the install instructions, or even add the 'libcurl' method to the install_github command directly.