Skip to content

Rename and export lockfile_from_manifest#2246

Open
jonkeane wants to merge 2 commits intorstudio:mainfrom
jonkeane:lockfile_manifest
Open

Rename and export lockfile_from_manifest#2246
jonkeane wants to merge 2 commits intorstudio:mainfrom
jonkeane:lockfile_manifest

Conversation

@jonkeane
Copy link
Copy Markdown
Contributor

Resolves #2245

@jonkeane jonkeane force-pushed the lockfile_manifest branch from 7ec5b89 to a1ee9bb Compare March 24, 2026 22:28
@kevinushey
Copy link
Copy Markdown
Collaborator

Thanks, but I intentionally don't want to export this, because it's more-or-less a utility function that is only relevant for rsconnect. (correct me if I'm wrong)

Does this still need to live in renv? Would it be possible to move / reimplement this in rsconnect?

@jonkeane
Copy link
Copy Markdown
Contributor Author

FWIW, I was using it to publish with the Publisher something I already had a manifest for, and just needed to make sure I used the same packages. So no rsconnect involved.

In the publisher, we will want to use something like this to shortcut there (the current path that published uses with renv didn't use this, hence me needing to do it manually).

Happy to close this if you really don't want to export this, but in my experience being able to make a lockfile from a manifest helps users get into more modern lockfile experiences more easily. If we don't export this, we might need to add it to other pathways to ensure that publisher does hit it.

@kevinushey
Copy link
Copy Markdown
Collaborator

How hard would it be to move this code into publisher? Would it be made easier if we exposed some slightly more generic tools from renv?

@jonkeane
Copy link
Copy Markdown
Contributor Author

I do think renv is the right home for this honestly. There is value for someone who has a manifest from rsconnect and wants to start using renv but isn't using publisher.

But if you're concerned about exposing this to renv, you we could add it to publisher. The r calling code is a bit in flux right now, but I'm happy to help point out where you should PR this to.

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.

Export renv_lockfile_from_manifest()?

2 participants