lintr
to R packageuse_lintr.Rd
Add scaffolding for lintr
package usage to R package.
use_lintr(base_path = ".", use_testthat = TRUE)
base_path | package root directory. |
---|---|
use_testthat | logical, if |
side effect of adding lintr
scaffolding to package.
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.
# NOT RUN { use_lintr() # }