R Source Code Similarity Evaluation by Variable/Function Names

Evaluates R source codes by variable and/or functions names. Similar source codes should deliver similarity coefficients near one. Since neither the frequency nor the order of the used names is considered, a manual inspection of the R source code is required to check for similarity. Possible use cases include detection of code clones for improving software quality and of plagiarism amongst students' assignments.


rscc

Compares R code in files or expressions and computes similarity coefficients for them.

View the vignette on GitHub or after installing with

library("rscc")
vignette("rscc") 

Installation

From CRAN

install.packages("rscc")

From github

Note that from github you install the current development version.

library("devtools")
install_github("sigbertklinke/rscc")

History

  • 2022-01-20 version 0.2.1, improved documentation & HTML output, faster computation
  • 2021-09-09 version 0.1.0

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rscc")

0.2.1 by Sigbert Klinke, 5 years ago


https://github.com/sigbertklinke/rscc (development version)


Browse source code at https://github.com/cran/rscc


Authors: Sigbert Klinke [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports crayon, formatR, highlight, igraph, tm

Suggests rmarkdown, knitr


See at CRAN