Learn R Programming

easypackages (version 0.1.0)

from_import: from_import()

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

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

Run this code
## Not run: 
# from_import("dplyr", "select", "filter")
# from_import("dplyr", list("select", "filter"))
# ## End(Not run)

Run the code above in your browser using DataLab