-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
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' Which is particularly confusing because:
[ins] r$> list.files(.libPaths())
[1] "ape" "askpass" "assertthat" "base" "base64enc" "bibtex" "bitops" "boot" "caTools" "class" "cli" "cluster" "codetools" "colorspace"
[15] "compiler" "cowplot" "crayon" "crosstalk" "curl" "data.table" "datasets" "digest" "dplyr" "ellipsis" "fansi" "farver" "fitdistrplus" "FNN"
[29] "foreign" "future" "future.apply" "gbRd" "gdata" "ggplot2" "ggrepel" "ggridges" "globals" "glue" "gplots" "graphics" "grDevices" "grid"
[43] "gridExtra" "gtable" "gtools" "hexbin" "htmltools" "htmlwidgets" "httr" "ica" "igraph" "irlba" "isoband" "jsonlite" "KernSmooth" "labeling"
[57] "later" "lattice" "lazyeval" "leiden" "lifecycle" "listenv" "lmtest" "lsei" "magrittr" "MASS" "Matrix" "MatrixModels" "metap" "methods"
[71] "mgcv" "mime" "mnormt" "multcomp" "munsell" "mutoss" "mvtnorm" "nlme" "nnet" "npsurv" "numDeriv" "openssl" "packrat" "parallel"
[85] "patchwork" "pbapply" "pillar" "pkgconfig" "plotly" "plotrix" "plyr" "png" "promises" "purrr" "quantreg" "R6" "RANN" "RColorBrewer"
[99] "Rcpp" "RcppAnnoy" "Rdpack" "reshape2" "reticulate" "rlang" "ROCR" "rpart" "RSpectra" "rsvd" "Rtsne" "sandwich" "scales" "sctransform"
[113] "Seurat" "sn" "SparseM" "spatial" "splines" "stats" "stats4" "stringi" "stringr" "survival" "sys" "tcltk" "TFisher" "TH.data"
[127] "tibble" "tidyr" "tidyselect" "tools" "tsne" "utf8" "utils" "uwot" "vctrs" "viridisLite" "withr" "yaml" "zoo"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!
Metadata
Metadata
Assignees
Labels
No labels