From b2911fd5b0c71dd0322009a00ba527e4ca89f95c Mon Sep 17 00:00:00 2001 From: Craig Williams Date: Thu, 30 Jan 2025 11:59:17 +0000 Subject: [PATCH] Invisibly return the snapshot instead of visibly --- DESCRIPTION | 2 +- R/snapshot.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5ffb6e7..e5bab9b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 diff --git a/R/snapshot.R b/R/snapshot.R index 8000603..11db656 100644 --- a/R/snapshot.R +++ b/R/snapshot.R @@ -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)) }