define_pkg_fn {bandicoot}R Documentation

Load functions from package namespaces into current environment

Description

This function loads functions from package namespaces and assigns them to the preferred function names in the current environment.

Usage

define_pkg_fn(pkg, ...)

Arguments

pkg

Package.

...

Functions. Preferred names can be provide via named arguments.

Details

Preferred function names can be provide via named arguments like info = cli_alert_info.

Value

No return value, called for side effects.

Examples

define_pkg_fn(pkg = cli, cli_alert_info, cli_alert_warning)
define_pkg_fn(cli, cli_alert_warning, info = cli_alert_info)


[Package bandicoot version 1.0.0 Index]