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)
packages | Packages needed to run a tutorial |
---|
show_dependencies
to get the tutorial dependencies.
if (FALSE) { packages <- show_dependencies(tutorial = "divdyn") load_dependencies(packages = packages) }