-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in if (type == "binary") { : argument is of length zero
in devtools::install()
dependencies under Windows.
#291
Comments
This likely was an issue with |
Thanks for the tip @jimhester. I only run Linux, and I guess |
I just got this issue while creating a new r library to test my package installing. > options("pkgType")
$`pkgType`
[1] "both" I'm not sure what's causing this but I thought I'd add my comment. I'm also using Windows 7. > sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 rstudioapi_0.9.0 magrittr_1.5 usethis_1.4.0 devtools_2.0.1 pkgload_1.0.2
[7] R6_2.4.0 rlang_0.3.1 tools_3.5.1 pkgbuild_1.0.2 packrat_0.5.0 sessioninfo_1.1.1
[13] cli_1.0.1 withr_2.1.2 remotes_2.0.2.9000 assertthat_0.2.0 digest_0.6.18 rprojroot_1.3-2
[19] crayon_1.3.4 processx_3.2.1 callr_3.1.1 clisymbols_1.2.0 fs_1.2.6 ps_1.3.0
[25] curl_3.3 testthat_2.0.1 memoise_1.1.0 glue_1.3.0.9000 compiler_3.5.1 desc_1.2.0
[31] backports_1.1.3 prettyunits_1.0.2 |
@sdhutchins, does your package have any remotes dependencies in the description? That is the only thing that is different about the package of mine that is failing to build, compared with those that build no problem. |
I just started seeing this here after r-lib/devtools#2020 was fixed. Any tips for Travis CI? |
It might require a patch release of remotes, I have been unable to reproduce reliably until now, but I am also getting it in https://travis-ci.org/jimhester/vroom/builds/517979475, so I should be able to track it down. |
I'm getting the same here: https://travis-ci.org/leg-ufpr/estbas/builds/517993870#L1540 |
If this helps: I can confirm this error here now: https://travis-ci.com/Exp-Micro-Ecol-Hub/emeScheme/builds/107620556 |
It also appears when running it locally. remotes::install_deps(dependencies = T)
These packages have more recent versions available.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: rcmdcheck (1.3.2 -> 702723cdf...) [GitHub]
5: rlang (0.3.3 -> 0.3.4 ) [CRAN]
6: usethis (1.4.0 -> 1.5.0 ) [CRAN]
Enter one or more numbers separated by spaces, or an empty line to cancel
1: 1
rcmdcheck (1.3.2 -> 702723cdf...) [GitHub]
drat (NA -> 0.1.5 ) [CRAN]
rlang (0.3.3 -> 0.3.4 ) [CRAN]
usethis (1.4.0 -> 1.5.0 ) [CRAN]
Installing 3 packages: drat, rlang, usethis
Error in if (type == "binary") { : argument is of length zero |
This is fixed in #340 You can add the following to your travis configuration until this is fixed in the CRAN release of remotes. r_github_packages: r-lib/remotes#340 |
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.
The text was updated successfully, but these errors were encountered: