Load the package dependencies of the specified tutorial in the cpnr package. If the package dependency is not installed, this function will install and subsequently load it.

load_dependencies(packages)

Arguments

packages

Packages needed to run a tutorial

See also

show_dependencies to get the tutorial dependencies.

Examples

if (FALSE) { packages <- show_dependencies(tutorial = "divdyn") load_dependencies(packages = packages) }