Skip to contents

This function tests a script for style errors using the lintr package.

Usage

validate_style(filepath, export_to_dataframe = FALSE)

Arguments

filepath

The complete filepath of the script.

export_to_dataframe

A logical value indicating whether to export results to a data frame. Default is FALSE.

Examples

if (FALSE) { # \dontrun{
# Validate the style of a script
validate_style(filepath = "/path/to/script.R")

# Validate the style of a script and export the results to a dataframe
validate_style(filepath = "/path/to/script.R", export_to_dataframe = TRUE)
} # }