detect_similar_code: Detect similar code blocks

View source: R/detect_similar_code.R

detect_similar_codeR Documentation

Detect similar code blocks

Description

This is a wrapper around dupree::dupree(). It analyses provided files looking for similar code. It is a bit slow so it can be impractical on big projects to run it with default (all files contained in working directory recursively), in this case it is wiser to run it on one or more specific paths or/and or to filter the files using the pattern argument.

Usage

detect_similar_code(paths = ".", recursive = TRUE, pattern = NULL)

Arguments

paths

Paths to scripts or folders containing scripts

recursive

Whether folders should be explorer recursively

pattern

A regular expression used to filter files

Value

The paths argument invisibly. Called for side effects


moodymudskipper/refactor documentation built on May 17, 2024, 2:27 a.m.