Skip to content

Don't execute can_sudo_without_pw() until/unless it's absolutely necessary #850

@jennybc

Description

@jennybc

The next release of devtools uses pak::local_install_deps() for installing dependencies inside devtools::install(). I learned the hard way, i.e. via unsuccessful CRAN submission, that this can actually lead to a call to sudo.

I've now taken measures to ensure that devtools doesn't inadvertently trigger this, now or in the future. But it would also be nice if pak didn't call sudo -s id until/unless it has a proven need to know this information.

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