tests/testthat/test-lintr.R

linters_config <- lintr::with_defaults(
  object_usage_linter = NULL,
  line_length_linter = lintr::line_length_linter(120),
  camel_case_linter = NULL,
  snake_case_linter = NULL,
  multiple_dots_linter = NULL
)

if (requireNamespace("lintr", quietly = TRUE)) {
  context("lints")
  test_that("Package Style", {

    lintr::expect_lint_free(linters = linters_config)
  })
}

Try the shiny.info package in your browser

Any scripts or data that you put into this service are public.

shiny.info documentation built on March 23, 2020, 5:07 p.m.