attach_source {envir} | R Documentation |
Source R files into an attached environment
Description
Source R files into an attached environment
Usage
attach_source(
...,
name = as_tidy_env_name(c(...), prefix = "source:"),
recursive = FALSE,
pos = 2L,
chdir = FALSE,
warn.conflicts = TRUE,
mask.ok = NULL,
parent = .GlobalEnv
)
Arguments
... |
filepaths to R files, or paths to directories containing R files. |
name |
A string, the name for the attached environment. By default, the
name is constructed from paths supplied to |
recursive |
If directories are passed to |
pos |
The position where to attach the environment, if creating a new
one. If an environment of |
chdir |
logical. if TRUE, the R working directory is temporarily changed to the directory containing the file(s) being sourced. |
warn.conflicts |
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. If the environment specified by |
mask.ok |
character vector of names of objects that can mask objects on
the search path without signaling a warning if |
parent |
R environment. If an environment specified by |
Value
The attached environment, invisibly.
See Also
import_from, set_library_default_pos