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

View source: R/dupree.R

dupree_packageR Documentation

Run duplicate-code detection over all files in the 'R' directory of a package

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

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


russHyde/dupree documentation built on April 8, 2024, 10:37 a.m.