| model_deps | R Documentation |
Reports optional packages from the package 'Suggests' field, including model, documentation, and testing packages. This function **never installs** packages. It reports which packages are required and which are currently missing, and prints a ready-to-copy command you can run to install the missing ones manually.
model_deps()
You can add to the discovered packages for testing or CI with 'options(writeAlizer.required_pkgs = c("pkgA", "pkgB (>= 1.2.3)"))'. Any version qualifiers you include are preserved in the 'required' output, but stripped for the availability check in 'missing'. Installed versions are not compared against those qualifiers.
A named list:
Character vector of discovered package tokens (may include version qualifiers),
e.g. c("glmnet (>= 4.1)", "ranger"). This is the union of the package
Suggests field and the optional writeAlizer.required_pkgs override.
Character vector of base package names that are not installed,
e.g. c("glmnet", "ranger").
The function also emits a message. If nothing is missing, it reports that all
required packages are installed. Otherwise, it lists the missing packages and
prints a copy-paste install.packages() command.
md <- model_deps()
md$missing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.