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

Solver resolution error even though binary exists (and install.packages() works) #396

Closed
pat-s opened this issue Nov 25, 2024 · 2 comments
Closed

Comments

@pat-s
Copy link
Contributor

pat-s commented Nov 25, 2024

Can't wrap my head around the following error.

tibble was a random choice. Also applies to others. Any idea what might be going on?

docker run --rm -it devxygmbh/r-alpine:4.4-3.20 sh

R -q -e 'packageVersion("pkgdepends")'
[1] ‘0.8.0’

# same with devel
R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'

R -q -e 'available.packages()[which(grepl("^tibble$", available.packages()[, "Package"])), c(1,2)]'
 Package  Version 
"tibble"  "3.2.1" 

R -q -e 'length(available.packages()[, "Package"])'
[1] 20170

pak::repo_get()
# A data frame: 6 × 5
  name          url                                 type  r_version bioc_version
* <chr>         <chr>                               <chr> <chr>     <chr>       
1 CRAN          https://cran.devxy.io/arm64/alpine… cran  *         NA          
2 BioCsoft      https://bioconductor.org/packages/… bioc  4.4.2     3.20        
3 BioCann       https://bioconductor.org/packages/… bioc  4.4.2     3.20        
4 BioCexp       https://bioconductor.org/packages/… bioc  4.4.2     3.20        
5 BioCworkflows https://bioconductor.org/packages/… bioc  4.4.2     3.20        
6 BioCbooks     https://bioconductor.org/packages/… bioc  4.4.2     3.20  

R -q -e 'pak::pak("tibble")'

Error: 
! error in pak subprocess
Caused by error: 
! Could not solve package dependencies:
* tibble: Can't find package called tibble.

R -q -e 'install.packages("tibble")'

* installing *binary* package ‘glue’ ...
* DONE (glue)
* installing *binary* package ‘utf8’ ...
* DONE (utf8)
* installing *binary* package ‘fansi’ ...
* DONE (fansi)
* installing *binary* package ‘magrittr’ ...
* DONE (magrittr)
* installing *binary* package ‘pkgconfig’ ...
* DONE (pkgconfig)
* installing *binary* package ‘rlang’ ...
* DONE (rlang)
* installing *binary* package ‘lifecycle’ ...
* DONE (lifecycle)
* installing *binary* package ‘vctrs’ ...
* DONE (vctrs)
* installing *binary* package ‘pillar’ ...
* DONE (pillar)
* installing *binary* package ‘tibble’ ...
* DONE (tibble)

The downloaded source packages are in
	‘/tmp/RtmphGGmkB/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
@gaborcsardi
Copy link
Member

This is probably not what you want:

~ # curl -s https://cran.devxy.io/arm64/alpine320/latest/src/contrib/PACKAGES | grep '^Package:' | wc -l
20175
~ # curl -s https://cran.devxy.io/arm64/alpine320/latest/src/contrib/PACKAGES.gz | gzip -cd | grep '^Package:' | wc -l
6310

@pat-s
Copy link
Contributor Author

pat-s commented Nov 25, 2024

Argh, CDN cache. Thanks a lot!

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