Skip to contents

Check all nflverse packages for available cran updates.

Usage

nflverse_update(recursive = FALSE, repos = getOption("repos"), devel = FALSE)

Arguments

recursive

If TRUE, will also list all strong dependencies of nflverse packages.

repos

the repositories to use to check for updates. Defaults to getOptions("repos").

devel

If TRUE the function will look for prebuilt development versions on https://nflverse.r-universe.dev/ so it is possible to install development versions without GitHub.

Value

Returns NULL invisibly. Called for side effects.

Examples

# \donttest{
try(
nflverse_update()
)
#>  All nflverse packages are up-to-date!
try(
nflverse_update(devel = TRUE)
)
#>  The following packages are out of date:
#> • nflfastR (4.5.1 -> 4.5.1.9004)
#> • nflplotR (1.1.0 -> 1.1.0.9006)
#> • nflreadr (1.3.2 -> 1.3.2.7   )
#> ── Start a clean R session then run ────────────────────────────────────────────
#> options(repos = c(
#>         nflverse = "https://nflverse.r-universe.dev",
#>         getOption("repos")
#>       ))
#> install.packages(c("nflfastR", "nflplotR", "nflreadr"))
#> ────────────────────────────────────────────────────────────────────────────────
# }