Skip to content

add description parameter to snapshot()#2250

Open
kevinushey wants to merge 1 commit intomainfrom
feature/snapshot-description
Open

add description parameter to snapshot()#2250
kevinushey wants to merge 1 commit intomainfrom
feature/snapshot-description

Conversation

@kevinushey
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a description parameter to snapshot() that accepts a package DESCRIPTION as either a named list or a file path
  • When provided, returns a single lockfile record for that package without requiring it to be installed
  • Enables downstream packages (e.g. rsconnect) to use exported renv APIs for manifest-to-lockfile conversion, replacing usage of renv:::renv_lockfile_from_manifest()

Test plan

  • New test: snapshot(description = <list>) returns correct record
  • New test: snapshot(description = <path>) returns correct record
  • Existing snapshot tests pass (82 pass, 2 pre-existing skips)

allows converting a package DESCRIPTION (as a named list or file path)
into a lockfile record, without requiring the package to be installed.
this enables downstream packages like rsconnect to use exported renv
APIs for manifest-to-lockfile conversion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant