DesiQuintans / librarian

Install, Update, Load Packages from CRAN, Bioconductor, and GitHub in One Step.
GNU General Public License v3.0
54 stars 1 forks source link

Error in ...length() : could not find function "...length" #4

Closed ghost closed 6 years ago

ghost commented 6 years ago

librarian::unshelf(lubridate) Error in ...length() : could not find function "...length"

sessionInfo() R version 3.4.3 (2017-11-30) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale: [1] LC_COLLATE=Greek_Greece.1253 LC_CTYPE=Greek_Greece.1253
[3] LC_MONETARY=Greek_Greece.1253 LC_NUMERIC=C
[5] LC_TIME=Greek_Greece.1253

attached base packages: [1] stats graphics grDevices utils datasets methods
[7] base

other attached packages: [1] lubridate_1.6.0

loaded via a namespace (and not attached): [1] Rcpp_0.12.13 reshape_0.8.7 grid_3.4.3
[4] plyr_1.8.4 gtable_0.2.0 GGally_1.3.2
[7] magrittr_1.5 scales_0.5.0 ggplot2_2.2.1
[10] pillar_1.2.1 stringi_1.1.5 rlang_0.2.0
[13] lazyeval_0.2.0 RColorBrewer_1.1-2 tools_3.4.3
[16] stringr_1.2.0 munsell_0.4.3 yaml_2.1.14
[19] compiler_3.4.3 colorspace_1.3-2 librarian_1.3.0
[22] tibble_1.4.2

DesiQuintans commented 6 years ago

Thanks for this. It was caused by ...length() being a base function that seems to have been added only in R 3.5.0, but I wrongly said that Librarian would be happy with R => 3.4.0. I've changed the dependency to R 3.5.0.

However, I understand that updating your R installation creates a bunch of headaches with updating all of your packages and then dealing with any API-breaking changes they introduced, so even though librarian needs 3.5.0, I've added a dependency for backports to fix this particular missing function problem so that you can continue using librarian in R 3.4.3.

Just install librarian from GitHub

install.packages("devtools")
devtools::install_github("DesiQuintans/librarian")

and you should be okay!

ghost commented 6 years ago

Now I get this error:

devtools::install_github("DesiQuintans/librarian") Downloading GitHub repo DesiQuintans/librarian@master from URL https://api.github.com/repos/DesiQuintans/librarian/zipball/master Installing librarian "C:/R/R-34~1.3/bin/i386/R" --no-site-file --no-environ \ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/gidontas/AppData/Local/Temp/Rtmp6vhaf3/devtoolsd1c6d436cbc/DesiQuintans-librarian-eb53d82" \ --library="C:/R/R-3.4.3/library" --install-tests

ERROR: this R is version 3.4.3, package 'librarian' requires R >= 3.5.0 In R CMD INSTALL Installation failed: Command failed (1)

DesiQuintans commented 6 years ago

Ah geez, okay I've reverted the R version change.

ghost commented 6 years ago

it's ok now. Thank you!