use_lintr_template_on_file: Use lintr template

View source: R/lintr_wrappers.R

use_lintr_template_on_fileR Documentation

Use lintr template

Description

This opens up an untitled script in RStudio containing calls to lintr::lint() or lintr::lint_dir() with various linters, sorted by category and rough order of importance.

Usage

use_lintr_template_on_file(path = NULL)

use_lintr_template_on_dir(path = NULL)

Arguments

path

Path to a R script or a directory. By default use_lint_template_on_file() considers the active document and use_lint_template_on_dir() considers the project folder as returned by here::here()

Value

Returns NULL invisibly. Called for side effects.


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