I have a colleague who was trying to install a package I have on GitLab, but the install couldn't proceed without first manually installing the dependencies. She is using Windows. Unfortunately I forgot to ask her for session info. The input was this:
pkg_name <- "canadaHCDx"
branch = "master"
url <- paste0("https://gitlab.com/ConorIA/", pkg_name, "/-/archive/", branch, "/", pkg_name, "-", branch, ".zip")
f <- tempfile()
d <- tempdir()
download.file(url, f)
unzip(f, exdir = d)
devtools::install(file.path(d, paste(pkg_name, branch, sep = "-")), dependencies = TRUE)
The output presented a series of dependencies to install, as expected:
These packages have more recent versions available.
Which would you like to update?
1: canadaHCD (0505b3f31... -> efe3209be...) [GitHub]
2: ggplot2 (3.0.0 -> 3.1.0 ) [CRAN]
3: httr (1.3.1 -> 1.4.0 ) [CRAN]
4: jsonlite (1.5 -> 1.6 ) [CRAN]
5: markdown (0.8 -> 0.9 ) [CRAN]
6: openssl (1.0.2 -> 1.2.1 ) [CRAN]
7: stringi (1.1.7 -> 1.2.4 ) [CRAN]
8: tibble (1.4.2 -> 2.0.1 ) [CRAN]
9: CRAN packages only
10: All
11: None
Enter one or more numbers separated by spaces, or an empty line to cancel
No matter what selection was chosen, the ensuing command failed with:
Installing 28 packages: gbRd, geosphere, ggplot2, gridExtra, htmlwidgets, httpuv, httr, jsonlite, later, leaflet, markdown, openssl, png, praise, promises, rappdirs, raster, Rdpack, rex, shiny, sourcetools, sp, storr, stringi, testthat, tibble, viridis, xtable
Error in if (type == "binary") { : argument is of length zero
We did get it to install by installing all of the dependencies via install.packages(), and then running the devtools::install() line again.
Was this user error on our side? If not, it seems to be something in the devtools dependency installer code. I did search in the closed issues, but if this is an old bug, I apologize.
I have a colleague who was trying to install a package I have on GitLab, but the install couldn't proceed without first manually installing the dependencies. She is using Windows. Unfortunately I forgot to ask her for session info. The input was this:
The output presented a series of dependencies to install, as expected:
No matter what selection was chosen, the ensuing command failed with:
We did get it to install by installing all of the dependencies via
install.packages(), and then running thedevtools::install()line again.Was this user error on our side? If not, it seems to be something in the devtools dependency installer code. I did search in the closed issues, but if this is an old bug, I apologize.