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