Skip to content

Condition length error #45

Open
Open

Description

@jennybc

I called devtools::install(build_vignettes = TRUE) to install a local package and got an error coming from crancache. Sorry this is not a clean reprex, but now that the package are installed, I can't go back. But I think this is probably informative enough to make a fix.

These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                            
2: CRAN packages only             
3: None                           
4: tibble  (3.1.8 -> 3.2.0) [CRAN]
5: fastmap (1.1.0 -> 1.1.1) [CRAN]
6: cachem  (1.0.6 -> 1.0.7) [CRAN]
7: ggplot2 (3.4.0 -> 3.4.1) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 1
tibble  (3.1.8 -> 3.2.0) [CRAN]
fastmap (1.1.0 -> 1.1.1) [CRAN]
cachem  (1.0.6 -> 1.0.7) [CRAN]
ggplot2 (3.4.0 -> 3.4.1) [CRAN]
Installing 4 packages: tibble, fastmap, cachem, ggplot2
Installing packages into '/Users/jenny/Library/R/x86_64/4.2/library'
(as 'lib' is unspecified)

  There is a binary version available but the source version is later:
       binary source needs_compilation
tibble  3.1.8  3.2.0              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) 
trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.2/fastmap_1.1.1.tgz'
Content type 'application/x-gzip' length 201349 bytes (196 KB)
==================================================
downloaded 196 KB

trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.2/cachem_1.0.7.tgz'
Content type 'application/x-gzip' length 67349 bytes (65 KB)
==================================================
downloaded 65 KB


The downloaded binary packages are in
	/tmp/RtmpszWjQG/downloaded_packages
installing the source package 'tibble'

trying URL 'https://cloud.r-project.org/src/contrib/tibble_3.2.0.tar.gz'
Content type 'application/x-gzip' length 565955 bytes (552 KB)
==================================================
downloaded 552 KB

* installing *source* package ‘tibble’ ...
** package ‘tibble’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c attributes.c -o attributes.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c coerce.c -o coerce.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c init.c -o init.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c matrixToDataFrame.c -o matrixToDataFrame.o
clang -mmacosx-version-min=10.13 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o tibble.so attributes.o coerce.o init.o matrixToDataFrame.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Users/jenny/Library/R/x86_64/4.2/library/00LOCK-tibble/00new/tibble/libs
** R
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (tibble)

The downloaded source packages are in
	'/private/tmp/RtmpszWjQG/downloaded_packages'
Adding 'cachem_1.0.7.tgz' to the cache
Adding 'fastmap_1.1.1.tgz' to the cache
Adding 'tibble_3.2.0.tar.gz' to the cache
Error in "INSTALL_opts" %in% names(args) && grepl("--no-test-load", args$INSTALL_opts,  : 
  'length(x) = 2 > 1' in coercion to 'logical(1)'
Run `rlang::last_error()` to see where the error occurred.
> le
<error/rlang_error>
Error:
! 'length(x) = 2 > 1' in coercion to 'logical(1)'
---
Backtrace:
  1. devtools::install(build_vignettes = TRUE)
  2. remotes::install_deps(...)
       at devtools/R/install.R:82:4
  4. remotes:::update.package_deps(...)
  5. remotes:::install_packages(...)
  7. remotes (local) `<fn>`(...)
 12. crancache (local) i.p(...)
 13. crancache:::update_cache(...)
 14. crancache:::update_cache_safe(...)
 15. crancache:::update_cache_binaries(...)
Run `rlang::last_trace()` to see the full context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions