# include(package) will ensure that the entire package is attached
include(fuj)
head(ls("include:fuj"), 20)
detach("include:fuj", character.only = TRUE)
# include a single export
include(fuj, "collapse")
# include multiple exports, and alias
include(fuj, c(
no_names = "remove_names",
match_any = "any_match"
))
# include an export where the alias has a warn conflict
include(fuj, c(attr = "exattr"))
# note that all 4 exports are included
ls("include:fuj")
# all exports are the same
identical(collapse, fuj::collapse)
identical(no_names, fuj::remove_names)
identical(match_any, fuj::any_match)
identical(attr, fuj::exattr)
Run the code above in your browser using DataLab