Invisibly return the snapshot instead of visibly

This commit is contained in:
2025-01-30 11:59:17 +00:00
parent 36f6ef2020
commit b2911fd5b0
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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))
} }