Find all references to
.parsingSim will pull out the various ways to use sim, e.g.,
.findElementsInEnv( envToFindSim = parent.frame(), moduleEnv = parent.frame(), type ) .findElement(x, type) .parsingSim(x, type)
An environment where sim is defined. This is used when
the element accessing the simList is actually a call, e.g.,
The environment where the module functions are.
Either "get", "assign", or "globals". See details.
A call in which to search for sim
.findElementsInEnv is a wrapper around
.findElements. It will convert
function code to a call, and then pass it to
.findElements. It also does
some cleaning for duplications,
NA values, and cases where the element
sim[["xxx"]] is a variable that should be evaluated, rather than
simply taken verbatim (e.g.,
type = "get", the function scans for
the RHS of an assignment operator or when there is no assignment. When
type = "assign", the function scans for
sim[["xxx"]] on the
LHS of an assignment operator. When
type = "globals", the function
scans for all functions (i.e., "globals") being used. This is similar to
codetools::findGlobals, but faster.
.findElement will omit whatever it finds inside a
type = "assign". Usually this is a test of existence of that object, in
order to assign to that object. It is only reading it to determine whether or
not it should write to it.
A character string with all sim objects found
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.