-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDESCRIPTION
More file actions
30 lines (30 loc) · 1.53 KB
/
DESCRIPTION
File metadata and controls
30 lines (30 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Package: CodeAnalysis
Title: Tools for Static Analysis of R code
Version: 0.9-0
Description: This package provides a (growing) collection of
functions that analyze R code and identify particular idioms
or characteristics. Some of these functions modify the code
to produce more streamlined version.
The package is motivated by compilation of R code and
simplifying code ahead of compilation.
However, the functionality may be useful generally for improving R code
and diagnosing issues, and also in other contexts such as dynamic documents.
We will continue to add functionality to analyze code for different purposes,
e.g. memory management,
opportunities for parallelism,
data locality for parallel computations, ...
Currently, there is functionality to:
* finding global variables - like codetools::findGlobals but recognizing
certain false positives, e.g., FUN in *apply() calls.
* find unused parameters/arguments
* find unused variables/assignments
* identify constant parameters (i.e. unchanged in the function's body)
* detect vector concatenation in loops
* identify & remove dead code (after a call to return())
* remove dead if/else code blocks (i.e. where we are certain the condition is TRUE or FALSE)
* identify parallel for loops.
Author: Duncan Temple Lang, Nick Ulle, Clark Fitzgerald, Matt Espe
Maintainer: Duncan Temple Lang <duncan@r-project.org>
License: BSD_3_clause + file LICENSE
Imports: CodeDepends, methods, codetools, igraph, tools, stats
Suggests: testthat, XML