| include | R Documentation |
Source R files
include(
files_andor_dirs,
envir = parent.frame(),
chdir = FALSE,
recursive = FALSE
)
files_andor_dirs |
A character vector of filepaths to R files, or
directories containing R files. Directories are searched for files that end
with extension ".R" or ".r", ignoring those that start with a period ( |
envir |
An R environment. By default, the current R evaluation environment. |
chdir |
logical; if |
recursive |
whether to search directories recursively for R files. |
This is a vectorized wrapper around base::sys.source with some
differences. Notably:
envir defaults to the current frame
envir is returned (invisibly)
keep.source and keep.parse.data default to
getOption("keep.source") and getOption("keep.parse.data") respectively,
instead of getOption("keep.source.pkgs") and
getOption("keep.parse.data.pkgs")
toplevel.env is set to getOption("topLevelEnvironment", envir). In
other words, if the option topLevelEnvironment is already set, it is
respected.
The environment envir, invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.