guessTaskType | R Documentation |
This attempts to infer the type of the task being performed.
There is a small set of known task types, listed in
system.file("Vocabulary", package = "CodeDepends")
.
Currently this uses simple rules. In the future, we might use a classifier.
guessTaskType(e, info = getInputs(e))
e |
the code block to be analyzed. This can be a call or an
expression.
Typically it is an element of a Script-class, i.e. a
|
info |
meta-information about the |
A character vector giving the different task identifiers.
Duncan Temple Lang
readScript
guessTaskType(quote(plot(x, y)))
e = expression({
d = read.table("myData.txt")
d$abc = d$a + log(d$b)
d[ d$foo == 1, ] = sample(n)
})
guessTaskType(e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.