Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit packrat lockfile metadata #13

Closed
edavidaja opened this issue Nov 6, 2018 · 2 comments
Closed

edit packrat lockfile metadata #13

edavidaja opened this issue Nov 6, 2018 · 2 comments
Labels

Comments

@edavidaja
Copy link

Really enjoying this simplified interface to packrat, thanks for putting it together.

Would it be possible to add the option of modifying the packrat lockfile from jetpack? I'd like to be able to choose my cran repo. Calling packrat::set_lockfile_metadata() from a jetpack project only modifies the file in the virtual env, and calling jetpack::check() resets it to the repo set in the packrat lockfile in the repo.

@ankane
Copy link
Owner

ankane commented Nov 8, 2018

Hey @edavidaja, thanks for bringing this up. You should be able to update packrat.lock manually in your project for now. Ideally, you could:

  1. Specify a source in the DESCRIPTION file to change it globally, like Repos: CRAN=https://cloud.r-project.org/
  2. Specify a source for a specific package in the Remotes: field (remotes would need to support this)

I'd prefer not to expose the packrat settings directly. Since there's not a standard way to add it to the DESCRIPTION right now and manually updating it should work, I'm inclined to just wait on this for now.

@ankane ankane added the waiting label Nov 8, 2018
@ankane
Copy link
Owner

ankane commented Jan 31, 2019

Moved to #1

@ankane ankane closed this as completed Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants