R/metapackage_functions.R
sitrep_install_deps.RdThis function installs all packages needed for the complete sitrep ecosystem, ensuring you have everything needed for working without internet connection.
sitrep_install_deps(
upgrade = "ask",
dependencies = TRUE,
repos = getOption("repos"),
quiet = FALSE,
force = FALSE
)Should packages be upgraded? Options: "ask", "always", "never". Default is "ask"
Should dependencies be installed? Default is TRUE
Repository to use. Default uses getOption("repos")
Should installation be quiet? Default is FALSE
Should installation proceed without prompts? Default is FALSE
This function reads the sitrep DESCRIPTION file and installs all packages listed in Depends, Imports, and Suggests fields. This ensures complete functionality in offline environments.
if (FALSE) { # \dontrun{
# Install everything for offline field work (with prompts)
sitrep_install_deps()
# Install without prompts
sitrep_install_deps(force = TRUE)
# Install quietly without prompts or upgrades
sitrep_install_deps(upgrade = "never", quiet = TRUE, force = TRUE)
} # }