Skip to content

devtools::install() hook (CMD + SHIFT + B) should not try and update your packages #1732

Closed

Description

@DavisVaughan

I really think we should set devtools::install(upgrade = "never") when running the build and install hook.

Right now it defaults to "ask", which in a non-interactive session is "always", and I don't think this is correct.

If I'm debugging some joint bug between, say, dev vctrs and dev cli at the same time and I have a specific commit of cli installed, then I don't want installing vctrs to upgrade cli out from under me.

I also wouldn't want a failure in the upgrade process to bring the whole installation process down if it wasn't necessary.

This is also the RStudio default, and I haven't found it prohibitive. If installation fails due to me not having a specific package, I can just run pak::pak() interactively to fix it first, and this gives me finer control over what to install. I think making that choice to upgrade is important from a package dev perspective.

Activity

  1. DavisVaughan commented on Oct 31, 2023

    @DavisVaughan
    ContributorAuthor

    Dup of #1631

  2. locked as resolved and limited conversation to collaborators on Aug 26, 2024
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions