Skip to contents

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.

Value

No return value, called for side effects.

Details

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

Examples

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