Skip to content

renv::snapshot() records repository URL despite repos = c() argument #2191

@lschneiderbauer

Description

@lschneiderbauer

Hi,

our team is using a private package repository where authentification works with a token that is passed within the repository URL.
Hence it is undesirable in our case that renv::snapshot() records repository URLs since those contain private tokens, and the renv.lock file is supposed to be shared.

We used the workaround to pass renv::snapshot(repos = c()) which avoided recording of URLs. But with recent versions of renv or R (I don't know exactly which one) the behavior changed, and URLs are now recorded regardless.
Every package in renv.lock contains a "Repository:" entry with the URL.

Is there any way to create renv.lock files that do not contain URLs?

Thanks!

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