
Import a single function from a package
import(pkg, fun, overwrite = FALSE)
None, called for side effects
String, name of the package
String, fun name of the function
Logical, if TRUE and fun
is also found in the current
environment, will overwrite assignment
# assigns `add` -- test with caution
import("magrittr", "add")
Run the code above in your browser using DataLab