Source R files in an attached environment
attach_source(
...,
name = as_tidy_env_name(c(...), prefix = "source:"),
recursive = FALSE,
pos = 2L,
chdir = FALSE,
warn.conflicts = TRUE,
mask.ok = NULL
)The attached environment, invisibly.
filepaths to R files, or paths to directories containing R files.
A string, the name for the attached environment. By default, the
name is constructed from paths supplied to .... If the requested name is
not on the search path, a new environment of this name is attached.
If directories are passed to ..., whether to search them
recursively.
The position where to attach the environment, if creating a new
one. If an environment of name already exists, pos is ignored.
logical. if TRUE, the R working directory is temporarily changed to the directory containing the file(s) being sourced.
logical. If TRUE (the default), print warnings about objects in the attached environment that that are masking or masked by other objects of the same name.
character vector of names of objects that can mask objects on
the search path without signaling a warning if warn.conflicts is TRUE
import_from, set_library_default_pos