from_import: from_import()

Description Usage Arguments Examples

View source: R/from_import.R

Description

Imports one or more functions from a package into the parent environment, overwriting any existing objects in the parent environment sharing the name of the function(s). The package is loaded but not attached to the search list. Inspired by Python.

Usage

1
from_import(package, ..., verbose = TRUE)

Arguments

package

the package name (length one character vector)

...

one or more function names (as-is, or as a list)

verbose

give a warning when overwriting existing objects? TRUE by default.

Examples

1
2
3
4
5
## Not run: 
from_import("dplyr", "select", "filter")
from_import("dplyr", list("select", "filter"))

## End(Not run)

easypackages documentation built on May 2, 2019, 3:35 p.m.