Learn R Programming

PaRe

PaRe (Package Reviewer) is the successor of the DependencyReviewer package. PaRe reviews other packages during code review and has the following features:

  1. What dependencies are used, and what functions are used of that dependency.
  2. The quality of the code style using lintr.
  3. Code complexity, using the cyclomatic complexity scores.
  4. How internally defined functions interact with one another, and visualizing this in a diagram.
  5. Fetching locations of defined functions in R-files.
  6. Checking dependencies against user a defined white list.
  7. Count lines of code for different languages by default: R, C++, SQL, and Java.
  8. Make a standardized HTML-report exploring the before mentioned features.

Installation

You can install the development version of PaRe like so:

install.packages("remotes")
remotes::install_github("darwin-eu-dev/PaRe")

Latest changes:

  1. Using R6 objects
  2. Generalized function input to use R6 objects
  3. Minor efficiency changes
  4. Major vignette updates

Copy Link

Version

Install

install.packages('PaRe')

Monthly Downloads

279

Version

0.1.16

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Maarten van Kessel

Last Published

February 4th, 2026

Functions in PaRe (0.1.16)

getFunsPerDefFun

getFunsPerDefFun
getDefaultPermittedPackages

getDefaultPermittedPackages
getApplyFromLines

getApplyFromLines
getFunctionUse

summariseFunctionUse
pkgDiagram

pkgDiagram
getDoCall

getDoCall
whiteList

whiteList
getDlplyCallFromLines

getDlplyCallFromLines
lintScore

lintScore
functionUseGraph

functionUseGraph
funsUsedInFile

funsUsedInFile
makeGraph

makeGraph
getFunCall

getFunCall
getApplyCall

getApplyCall
getExportedFunctions

getExportedFunctions
funsUsedInLine

funsUsedInLine
getDoCallFromLines

getDoCallFromLines
lintRepo

lintRepo
graphToDot

graphToDot
getDlplyCall

getDlplyCall
getGraphData

getGraphData
getMultiLineFun

getMultiLineFun
%>%

Pipe operator
getFunctionDiagram

subsetGraph
makeReport

makeReport
Code

R6 Code class
File

R6 File class
checkDependencies

checkDependencies
addPareArticle

addPareArticle
exportDiagram

exportDiagram
Repository

R6 Repository class.
PaRe-package

PaRe: A Way to Perform Code Review or QA on Other Packages
Function

R6 Function class.
countPackageLines

countPackageLines
checkInstalled

checkInstalled
getDefinedFunctions

getDefinedFunctions