R/dupree.R
dupree_package.Rd
The function fails if the path does not look like a typical R package (it should have both an R/ subdirectory and a DESCRIPTION file present).
dupree_package(package = ".", min_block_size = 40)
The name or path to the package that is to be checked (By default the current working directory).
dupree
uses a notion of non-trivial
symbols. These are the symbols / code-words that remain after filtering
out really common symbols like <-
, ,
, etc. After filtering
out these symbols from each code-block, only those blocks containing at
least min_block_size
symbols are used in the inter-block
code-duplication measurement.
dupree