Skip to content
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

Not able to install local package after updating dependencies #170

Closed
llrs opened this issue Jul 25, 2023 · 2 comments
Closed

Not able to install local package after updating dependencies #170

llrs opened this issue Jul 25, 2023 · 2 comments

Comments

@llrs
Copy link

llrs commented Jul 25, 2023

I'm working in a package and I'm finding problems when installing locally and updating CRAN packages:

devtools::install()
## 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: openssl (2.0.6 -> 2.1.0) [CRAN]
## 
## Enter one or more numbers, or an empty line to skip updates: 2
## openssl (2.0.6 -> 2.1.0) [CRAN]
## ...
## installing to /home/lluis/bin/R/4.3.0/00LOCK-openssl/00new/openssl/libs
## ** R
## ** inst
## ** tests
## ** byte-compile and prepare package for lazy loading
## ** help
## *** installing help indices
## ** 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 (openssl)
## 
## The downloaded source packages are in
## 	'/tmp/Rtmphw8lCW/downloaded_packages'
## Error in "INSTALL_opts" %in% names(args) && grepl("--no-test-load", args$INSTALL_opts,  : 
##   'length = 2' in coercion to 'logical(1)'

After this I can install the package correctly with another call to devtools::install().
I'm using '1.4.0' and after this error message I updated to 1.4.2, so I don't know if this will surface again or might be related to a point in the 1.4.1 "pkgbuild now always appends its extra compiler flags to the ones that already exist in the system and/or user Makevars files (#156).".

I'm sorry for not providing a reproducible example or traceback() (I didn't think about reporting it immediately after the error occurred).

@gaborcsardi
Copy link
Member

Why do you think this is an error in pkgbuild?

@llrs
Copy link
Author

llrs commented Jul 25, 2023

I initially wanted to report to devtools but then I realized it is not the right place to report this. After a cursory look at the internals of devtools::install I thought that pkgbuild was a better bet as I was trying to build my own package (I didn't check were that piece of code might come from and I didn't have a traceback). Apologies for reporting it incorrectly. If I report other bugs I'll be more careful.

Many thanks for fixing it. I appreciate a lot what you do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants