Skip to contents

Run update only if needed

Usage

updatePackages(
  doUpdate = 1,
  repo = "https://cloud.r-project.org",
  useCiOptions = 1
)

Arguments

doUpdate

1 to update other values to do nothing

repo

The repository used to download packages

useCiOptions

1 (default) to use CI options as defined in optionsForCi.R, other values to not use them

Examples

if (FALSE) {
    citoolsr::updatePackages()
}