Open rbpatt2019 opened 4 years ago
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.
@kevinushey Thanks for the advice. I'll check out renv, too. Feel free to consider this closed!
@kevinushey Thanks for the advice. I'll check out renv, too. Feel free to consider this closed!
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!