Skip to contents

This is a simple wrapper of lintr::lint_package() call using only the module_namespace_linter() from {SIAtools}. See the linter documentation for more details.

Usage

lint_ns(path = curr_proj(), ...)

Arguments

path

character, path to the package root directory. Default is the current project’s directory.

...

Arguments passed on to lintr::lint_package

parse_settings

Logical, default TRUE. Whether to try and parse the settings; otherwise, the default_settings() are used.

relative_path

if TRUE, file paths are printed using their path relative to the base directory. If FALSE, use the full absolute path.

exclusions

exclusions for exclude(), relative to the package path.

show_progress

Logical controlling whether to show linting progress with a simple text progress bar via utils::txtProgressBar(). The default behavior is to show progress in interactive() sessions not running a testthat suite.

Value

An object of class c("lints", "list"), each element of which is a "list" object.

See also

Other linter-related functions: module_namespace_linter()

Examples

if (FALSE) { # \dontrun{
lint_ns()
} # }