source | R Documentation |
A modified version of the source() function to capture in a data.frame what file was called and from which file
source(
file,
local = getOption("cctu_source_local", default = FALSE),
backup = NULL,
...
)
file |
a connection or a character string giving the
pathname of the file or URL to read from. The |
local |
|
backup |
A character string giving the file path to which to save an image of the R environment before sourcing any code. Default is NULL, which does not save any image. |
... |
other parameters to be passed to |
evaluates code in the file argument, and also augments or creates a
dataframe with two variables (parent, child). The intention is to record
the architecture of a sequenece of code files run using nested source()
statements. To override this function use
source <- base::source
.
no return value
source
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.