Skip to content

Be less strict about restoring packages installed from sources from CRAN #371

@kevinushey

Description

@kevinushey

Lots of users run into issues where a package installed from a local source tarball later cannot be snapshotted / restored, with something like:

Error: Unable to retrieve package records for the following packages:

  • 'dplyr'

Currently, Packrat only attempts to install packages from CRAN if it sees within the DESCRIPTION file

Repository: CRAN

and while the main CRAN repositories do set this for the packages they provide (with a couple exceptions for e.g. 'extra' repositories), many users set up their own CRAN-like repositories that do not enforce this.

In short, we should consider being more permissive with packages installed from source tarballs, and allow those packages to be reinstalled from CRAN if an appropriate version is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions