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 = c("ggplot2", "patchwork", "knitr", "rmarkdown", "tinytex", "sf", "gm"),
  external = TRUE
)

Arguments

extras

character vector of optional / training R packages to check.

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()
} # }