Checks for outdated Stan workflow packages and installs updates. This function
requires an interactive R session for installation unless dry_run = TRUE.
Dry runs check repositories and preview installs without prompting or
installing packages.
Adapted from tidyverse::tidyverse_update().
Arguments
- recursive
If
TRUE, will also list dependencies of dependencies. Whencheck_updates = TRUE, the recursive traversal follows only "strong" dependencies (Depends/Imports/LinkingTo), so Suggests are not expanded recursively.- dev
If
FALSE(default), checks for updates in the R-multiverse or CRAN (stable releases). IfTRUE, checks the Stan R-universe (dev versions). This is only cogent for Stan packages, and cannot compare two dev versions.- dry_run
Logical. If
TRUE, previews update steps without installing packages or prompting.
Value
Invisibly returns a data frame of outdated packages (same columns as
stanflow_deps). Returns NULL invisibly when no updates are
needed.