Learn R Programming

CodeDepends (version 0.6.6)

Analysis of R Code for Reproducible Research and Code Comprehension

Description

Tools for analyzing R expressions or blocks of code and determining the dependencies between them. It focuses on R scripts, but can be used on the bodies of functions. There are many facilities including the ability to summarize or get a high-level view of code, determining dependencies between variables, code improvement suggestions.

Copy Link

Version

Install

install.packages('CodeDepends')

Monthly Downloads

910

Version

0.6.6

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Gabriel Becker

Last Published

April 7th, 2024

Functions in CodeDepends (0.6.6)

inputCollector

Create customized input/output collector for use in getInputs
funchandlers

Specifying custom processing behavior, Function handlers and handler factories
getVariables

Get the names of the variables used in code
historyAsScript

Convert R interactive history to a Script object
makeTaskGraph

Create a graph connecting the tasks within a script
separateExpressionBlocks

Convert a script into individual top-level calls
makeCallGraph

Create a graph representing which functions call other functions
makeVariableGraph

Create a graph describing the relationships between variables in a script
splitRedefinitions

Divide a script into separate lists of code based on redefinition of a variable
sourceVariable

Evaluate code in document in order to define the specified variables
highlightCode

Display R code with highlighting of variables, links to functions and packages
updatingScript

Create a Script object that re-reads the original file as needed
runUpToSection

Evaluate the code blocks up to a particular section of a document
guessTaskType

Guess the type of high-level task of a code block
findWhenUnneeded

Determine the code block after which a variable can be explicitly removed
asVarName

asVarName
getExpressionThread

Find the sequence of expressions needed to get to a certain point in the code
getPropagateChanges

Determine which expressions to update when a variable changes
readScript

Read the code blocks/chunks from a document
Script-class

The Script class and elements
getInputs

Get input and output variables and literals from R expressions
getVariableDepends

Determine dependencies for code blocks
getDetailedTimelines

Compute and plot life cycle of variables in code
getDependsThread

Compute which code blocks in a script are inputs to define a variable