import: Import

View source: R/import.R

importR Documentation

Import

Description

Import a single function from a package

Usage

import(pkg, fun, overwrite = FALSE)

Arguments

pkg

String, name of the package

fun

String, fun name of the function

overwrite

Logical, if TRUE and fun is also found in the current environment, will overwrite assignment

Value

None, called for side effects

Examples

# assigns `add` -- test with caution
import("magrittr", "add")

mark documentation built on May 29, 2024, 5:13 a.m.