Description Usage Arguments Value Examples
Convenience function for sourcing a remake script (or other
arbitrary code) that is present as a character vector rather than
saved in a file. This just takes
care of writing the character vector to a temporary file and
running R's source()
over it. It will also source
other arbitrary sets of R code that are character vectors rather
than files.
1 | source_character(str, envir = .GlobalEnv, rewrite_source = TRUE)
|
str |
A character vector containing code to be sourced. Each element of the vector will be treated as a separate line. |
envir |
An environment to source into (by default the global environment). |
rewrite_source |
Because calls to |
The environment into which the code is sourced,
invisibly. This is primarily useful when used as
source_remake_script(script, envir=new.env())
, as the
environment created in the call is returned.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.