pak 0.11.0
-
pak now supports the
configure_argsandconfigure_varsconfiguration
options. They default to theconfigure.argsandconfigure.vars
options, for compatibility withinstall.packages()(#788). -
GitHub remotes now auto-detect an R package in a well-known subdirectory
(pkg-r/,r/, orR/) when nosubdiris given and there is no
DESCRIPTIONat the repository root. This lets multi-language
repositories be installed without specifyingsubdir(#459). -
pak now handles the case when a repository (typically Posit Package
Manager) serves a source package instead of the requested binary (#891). -
Better error messages for several dependency solver situations:
- when requesting a package that is installed locally, but was removed
from its repository (#895), - when requesting an older version (e.g.
pkg@1.0.0) of a package that
is no longer in the repository (#896), - when resolving downloads for a different platform
(r-lib/pkgdepends#462).
- when requesting a package that is installed locally, but was removed
-
The dependency solver no longer silently keeps an installed package as
the solution for a direct package reference that failed to resolve, e.g.
a CRAN package that is not on CRAN but happens to be installed locally
from another source. pak now reports the failure instead. -
install_argsis no longer overwritten when building packages. The
--no-multiarchflag needed on some Windows configurations is now added
to the existinginstall_args
(r-lib/pkgdepends#472). -
Duplicate system requirement commands are now deduplicated (#888).
-
pak now behaves better when the package cache database is corrupt: it
gives a better error message, and cleaning the cache no longer fails in
this case (#884). -
pak now handles
PACKAGESfiles withPathand/orFilefields
correctly, and drops HTTP query parameters from these fields when
constructing the target file name
(r-lib/pkgcache#141, @jeroen). -
All HTTP requests now honor the
pkgcache_http_versionoption and the
PKGCACHE_HTTP_VERSIONenvironment variable
(r-lib/pkgcache#140). -
pak now retries failed HTTP requests by default, using an exponential
backoff (and honoring theRetry-Afterheader). Set thePKG_HTTP_RETRY
environment variable or thepkg_http_retryoption toFALSEto disable
retries.