getExpressionThread | R Documentation |
What's the difference between this and getVariableInputs, getVariableDepends, getSectionDepends?
This does not currently attempt to get the minimal subset of expressions within the code block. In other words, if there are extraneous expressions within these blocks that are not actually necessary, these are evaluated. This is important for expressions with side effects, e.g. writing files or generating plots.
getExpressionThread(target, expressions, info = lapply(expressions,
getInputs, ...), ...)
target |
either the index of the
expression of interest in |
expressions |
the list of expressions |
info |
a list of objects giving information about the inputs to each top-level expression in expressions. |
... |
Passed to |
A Script-class
object containing the subset of the
code chunks pertinent to the target variable(s).
Duncan Temple Lang
getDependsThread
e = readScript(system.file("samples", "dual.R", package = "CodeDepends"))
getExpressionThread("fit", e)
getExpressionThread("y", e)
getExpressionThread("x", e)
getExpressionThread("k", e)
# With several
s = readScript(system.file("samples", "sitepairs.R", package = "CodeDepends"))
o = getExpressionThread("covs", s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.