Invisibly return the snapshot instead of visibly
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Package: Rpacman
|
||||
Type: Package
|
||||
Title: Very simple package manager for R
|
||||
Version: 1.0.14
|
||||
Version: 1.0.15
|
||||
Date: 2025-01-30
|
||||
Authors@R: person("Craig", "Williams", email = "craig@avsdev.uk", role = c("aut", "cre"))
|
||||
URL: https://avsdev.uk/R/Rpacman
|
||||
|
||||
@@ -16,7 +16,7 @@ snapshot <- function(installOpts = list(Ncpus = parallel::detectCores())) {
|
||||
snapshot$history <- history
|
||||
jsonlite::write_json(snapshot, "pacman.lock", pretty = TRUE, auto_unbox = TRUE)
|
||||
snapshot$history <- NULL
|
||||
return(snapshot)
|
||||
return(invisible(snapshot))
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user