dupree_package: Run duplicate-code detection over all files in the 'R'...

Description Usage Arguments See Also

View source: R/dupree.R

Description

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).

Usage

1
dupree_package(package = ".", min_block_size = 40)

Arguments

package

The name or path to the package that is to be checked (By default the current working directory).

min_block_size

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.

See Also

dupree


dupree documentation built on April 21, 2020, 5:06 p.m.