Skip to contents

Companion to en_check_dependencies() (which covers the solver backends). en_check_packages() reports whether energyRt's own R package dependencies and the extra packages used in the training course are installed, plus the external tools some of them need: a LaTeX engine for PDF reports (via tinytex) and MuseScore for the gm music output. Like en_check_dependencies() it prints a status table and returns the underlying tibble invisibly.

Usage

en_check_packages(extras = NULL, external = TRUE)

Arguments

extras

character vector of optional R packages to check. NULL (default) reads them off the package's own Suggests, so the list cannot drift from DESCRIPTION; dev-only tooling is left out. gm is appended because the (parked) score export uses it and it is not a dependency.

external

logical; also probe external tools (LaTeX engine, MuseScore).

Value

A tibble (component, required, found, version, path, note), invisibly.

Examples

if (FALSE) { # \dontrun{
en_check_packages()
} # }