use_lintr: Add 'lintr' to R package

Description Usage Arguments Details Value Examples

Description

Add scaffolding for lintr package usage to R package.

Usage

1
use_lintr(base_path = ".", use_testthat = TRUE)

Arguments

base_path

package root directory.

use_testthat

logical, if TRUE (default), adds tests/testthat/test-lintr.R to package.

Details

This function creates a template .lintr file for SNAPverse packages inside inst and adds a symbolic link to this file in the package root directory. It also adds both files to .Rbuildignore and creates a unit test for lint-free package code.

Value

side effect of adding lintr scaffolding to package.

Examples

1
## Not run: use_lintr()

leonawicz/snapmeta documentation built on May 19, 2019, 4:10 p.m.