need_pkg: Get a function from a package, abort if package not...

View source: R/utils_package_dev.R

need_pkgR Documentation

Get a function from a package, abort if package not installed.

Description

Get a function from a package, abort if package not installed.

Usage

need_pkg(pkg, fn)

Arguments

pkg

chr package

fn

fn function name

Value

fun

See Also

Other package dev: get_package_fns(), is_package(), is_package_dev(), pkg_chr_split_comma()

Examples

need_pkg("utils", "recover")

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.