Skip to content

feature request for implicit snapshot: allow a list packages to include in addition to automatic dependencies #1930

@torbjorn

Description

@torbjorn

renv::snapshot() defaults to type="implicit"

This misses optional dependencies of my packages that are not listed.

One example is ggsave(...) with svglite. Using ggsave to save svg files is a fairly common use case (with us at least) However svglite is not a formal dependency of ggplot2. ggsave() just warns you that you cannot save svg files unless svgite is installed.

At this point this project can no longer use renv::snapshot(type="implicit") (ie the default snapshoting behavoiur). This will remove svglite. (Yes, I could just add it manually after the snapshot, and record it, but thats not how life is supposed to be).

Would it be possible to maintain a list of packages to include in addition to dependencies found by renv? (auto dependencies is, in my belief, still a nice feature to have access to. and its the default behaviour of much of renv after all)

Ideally this file could be DESCRIPTION, but I find that whenever I try to use a DESCRIPTION file in a project that is not an R package, I get other headaches.

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