pegasystems / pega-datascientist-tools

Pega Data Scientist Tools
https://github.com/pegasystems/pega-datascientist-tools/wiki
Apache License 2.0
33 stars 27 forks source link

Error message when installing on clean R instance #18

Closed StijnKas closed 1 year ago

StijnKas commented 3 years ago

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.

MARVELMafia commented 1 year ago

Same issue! > devtools::install_github("tidyverse/ggplot2") Downloading GitHub repo tidyverse/ggplot2@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/tidyverse/ggplot2/tarball/HEAD'

operdeck commented 1 year ago

devtools::install_github("tidyverse/ggplot2")

Hi @MARVELMafia,

Thanks for contacting us. You seem to be trying to install ggplot2 from source here. We recommend using binary CRAN packages only for the dependencies of PDSTools.

Please see https://github.com/pegasystems/pega-datascientist-tools/wiki#installation.

Regards