Skip to content

setup-r-dependencies reinstalling too many packages? #759

Closed
r-lib/pkgdepends
#338

Activity

  1. added
    bug
    on Sep 20, 2023
  2. gaborcsardi commented on Sep 20, 2023

    @gaborcsardi
    MemberAuthor
  3. krlmlr commented on Sep 20, 2023

    @krlmlr
    Member
  4. gaborcsardi commented on Sep 20, 2023

    @gaborcsardi
    MemberAuthor

    I can reproduce locally, so will fix very soon.

  5. gaborcsardi commented on Sep 21, 2023

    @gaborcsardi
    MemberAuthor

    Yeah, so this is because the installed package has a slightly different platform string than the one in the lockfile:

    Browse[2]> installed[["platform"]]
    [1] "x86_64-pc-linux-gnu"
    Browse[2]> solution[["platform"]]
    [1] "x86_64-pc-linux-gnu-ubuntu-22.04"

    OTOH, we could also use this:

    Browse[2]> installed$remotepkgplatform
    [1] "x86_64-pc-linux-gnu-ubuntu-22.04"

    But for a package installed from CRAN we only have this, and we should handle this as well:

    Repository: CRAN
    Date/Publication: 2022-01-31 13:39:41 UTC
    Built: R 4.3.1; x86_64-pc-linux-gnu; 2023-09-21 14:53:54 UTC; unix
    RemoteType: standard
    RemotePkgRef: tiff
    RemoteRef: tiff
    RemoteRepos: https://cloud.r-project.org
    RemotePkgPlatform: source
    RemoteSha: 0.1-11
    

    Or, a package installed from CRAN with install.packages() has this:

    Repository: CRAN
    Date/Publication: 2022-01-31 13:39:41 UTC
    Built: R 4.3.1; x86_64-pc-linux-gnu; 2023-09-21 14:56:06 UTC; unix
    

    and of course packages installed from PPM will have this with:

    Repository: RSPM
    
  6. gaborcsardi commented on Sep 22, 2023

    @gaborcsardi
    MemberAuthor

    Should be in tomorrow's pak devel build, in about 7-8 hours.

  7. github-actions commented on Oct 6, 2023

    @github-actions

    This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

  8. locked as resolved and limited conversation to collaborators on Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions