r-lib / crancache

Transparent caching of CRAN package files - WORK IN PROGRESS!
Other
28 stars 2 forks source link

install_packages(): Force a re-install? [ANSWERED] #46

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

Is it possible for crancache::install_packages() to force a re-install, e.g. if you want to re-build a package towards a newer library dependency, e.g. a modern version of SQLite3?

HenrikBengtsson commented 1 year ago

Solution: Use type = "source", e.g.

crancache::install_packages("sf", type = "source")

This will ignore any binaries in CRANCACHE_DIR, build it from source, and then update the binary in CRANCACHE_DIR.