Add scaffolding for lintr package usage to R package.

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.

Value

side effect of adding lintr scaffolding 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.

Examples

# NOT RUN {
use_lintr()
# }