Analysis of R code for reproducible research and code comprehension


[Up] [Top]

Documentation for package ‘CodeDepends’ version 0.3-6

Help Pages

$-method The Script class and elements
addRemoveIntermediates Determine the code block after which a variable can be explicitly removed
AnnotatedScript-class The Script class and elements
coerce-method The Script class and elements
coerce-method Compute and plot life cycle of variables in code
coerce-method Create a Script object that re-reads the original file as needed
findWhenUnneeded Determine the code block after which a variable can be explicitly removed
getDependsThread Compute which code blocks in a script are inputs to define a variable
getDetailedTimelines Compute and plot life cycle of variables in code
getExpressionThread Find the sequence of expressions needed to get to a certain point in the code
getInputs Get input and output variables and literals from R expressions
getInputs-method Get input and output variables and literals from R expressions
getInputs-method Create a Script object that re-reads the original file as needed
getPropagateChanges Determine which expressions to update when a variable changes
getSectionDepends Determine dependencies for code blocks
getVariableDepends Determine dependencies for code blocks
getVariables Get the names of the variables used in code
getVariables-method Get the names of the variables used in code
guessTaskType Guess the type of high-level task of a code block
highlightCode Display R code with highlighting of variables, links to functions and packages
historyAsScript Convert R interactive history to a Script object
inputCollector Create customized input/output collector for use in getInputs
makeCallGraph Create a graph representing which functions call other functions
makeCallGraph-method Create a graph representing which functions call other functions
makeTaskGraph Create a graph connecting the tasks within a script
makeVariableGraph Create a graph describing the relationships between variables in a script
plot.DetailedVariableTimeline Compute and plot life cycle of variables in code
readAnnotatedScript Read the code blocks/chunks from a document
readScript Read the code blocks/chunks from a document
readScript-method Read the code blocks/chunks from a document
runUpToSection Evaluate the code blocks up to a particular section of a document
Script-class The Script class and elements
scriptInfo Get input and output variables and literals from R expressions
ScriptInfo-class The Script class and elements
ScriptNode-class The Script class and elements
ScriptNodeInfo-class The Script class and elements
separateExpressionBlocks Convert a script into individual top-level calls
sourceVariable Evaluate code in document in order to define the specified variables
splitRedefinitions Divide a script into separate lists of code based on redefinition of a variable
updatingScript Create a Script object that re-reads the original file as needed
[-method The Script class and elements