Skip to content

CRAN Release v0.6.0

Compare
Choose a tag to compare
@aronatkins aronatkins released this 20 Aug 20:36

Packrat 0.6.0

  • BREAKING CHANGE: The default Packrat cache directory has changed, and now
    includes an R version suffix. This helps avoid populating a single cache with
    versions of packages compiled for different versions of R (as there is no
    guarantee that packages compiled for e.g. R 3.4.x will work with R 3.5.x). If
    you'd like to migrate your old Packrat cache directory, you can move the
    directory at dirname(packrat:::appDataDir()) to packrat:::appDataDir().

  • Packrat now only queries binary repositories for available packages during
    installation if getOption("pkgType") != "source".

  • Packrat no longer attempts to unload packages loaded from the user library
    after calling packrat::init(), as this could fail in a myriad of cases.
    (To ensure proper isolation of the session, you should still restart R after
    invoking packrat::init()).

  • Packrat now properly annotates the RemoteType field when downloading packages
    from GitLab and Bitbucket. (#564)

  • Packrat no longer removes old source packages during a restore. (#560)

  • Added support for GitLab: packages downloaded from GitLab can now be
    restored by Packrat. (#562, @akgold)

  • Fixed an issue where tangled R code chunks containing invalid R code prevented
    Packrat from finding any dependencies. Packrat will now look for package
    dependencies within each code chunk independently. (#551)

  • Packrat no longer sets LC_ALL=C when building source packages, as this can
    lead to errors when building packages containing non-ASCII text. (#545)

  • Fixed an issue where ignored packages would still be queried by
    packrat::unused_packages(), which affected other APIs like packrat::clean().
    (#525)

  • Fixed an issue where newly-added project options did not get their correct
    default value when no entry existed within the packrat.opts file. (#496)

  • Improve performance of dependency processing. (#615)

  • Infer package dependencies from requireNamespace() and loadNamespace()
    only when the package name is character input. (#602)