pkg_require: Load the package, making sure to load from the correct...

View source: R/utils-pkg.R

pkg_requireR Documentation

Load the package, making sure to load from the correct location. Sometimes people have different versions of packages installed, so if the package is currently loaded, make sure to load from the place it was already loaded from.

Description

Load the package, making sure to load from the correct location. Sometimes people have different versions of packages installed, so if the package is currently loaded, make sure to load from the place it was already loaded from.

Usage

pkg_require(pkgs, do_not_ask = FALSE)

Arguments

pkgs

A character vector of packages to load.

do_not_ask

Prevent asking the user to install missing packages (they are skipped).

quietly

Prevent package startup messages.


UCLATALL/coursekata-r documentation built on Aug. 24, 2023, 8:54 p.m.