Find weaknesses in R scripts
Usage
find_weaknesses_in_scripts(
x = parse_scripts(root),
root = NULL,
min_duplicate_string_length = 6L,
min_duplicate_frequency = 3L
)
Arguments
- x
list of named parse trees as returned by
parse_scripts
. Not required ifroot
is given.- root
path to folder containing R scripts
- min_duplicate_string_length
minimum number of characters that a string constant must have to be considered as a duplicate
- min_duplicate_frequency
minimum frequency of a string constant to be considered as a duplicate