You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After starting a new project (devtools::create()), I initialised packrat (packrat::init()), then installed two packages - dplyr and Seurat. Upon calling packrat::snapshot(), I receive the following error:
[ins] r$>packrat::snapshot()
Error: Unable to retrieve package records for the following packages:
- 'testthat'
Definitely does not have testthat as an entry or package.
I've tried a number of things recommended in similar issues (#511, #541), like removing and re-installing, or passing snapshot.sources = FALSE, or passing infer.dependencies = FALSE, but all result in the original error.
Apologies if I'm missing something super-basic, this is my first adventure with packrat!
The text was updated successfully, but these errors were encountered:
packrat::snapshot() uses the union of packages included in your project, as well as packages already installed in your library paths. This most likely implies that Packrat discovered you're using testthat somewhere in your project, and so wants to ensure that it is added to the lockfile.
FWIW, I would strongly encourage you to check out renv as an alternative to Packrat; the API is ultimately the same but should overall be faster, more robust, and report errors more clearly.
After starting a new project (
devtools::create()
), I initialised packrat (packrat::init()
), then installed two packages -dplyr
andSeurat
. Upon callingpackrat::snapshot()
, I receive the following error:Which is particularly confusing because:
Definitely does not have
testthat
as an entry or package.I've tried a number of things recommended in similar issues (#511, #541), like removing and re-installing, or passing
snapshot.sources = FALSE
, or passinginfer.dependencies = FALSE
, but all result in the original error.Apologies if I'm missing something super-basic, this is my first adventure with packrat!
The text was updated successfully, but these errors were encountered: