if (requireNamespace("lintr", quietly = TRUE)) {
test_that("Package Style", {
lintr::expect_lint_free(linters = c(lintr::trailing_whitespace_linter(),
lintr::whitespace_linter(),
lintr::infix_spaces_linter(),
lintr::brace_linter(),
lintr::assignment_linter(),
lintr::commas_linter(),
lintr::spaces_left_parentheses_linter(),
lintr::T_and_F_symbol_linter(),
lintr::semicolon_linter()))
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.