Skip to content

Commit

Permalink
lintr not available??
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Dec 25, 2023
1 parent 0f5587c commit 508548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-lint_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ test_that("lintr need not be attached for .lintr.R configs to use lintr function
} else {
rscript <- file.path(R.home("bin"), "Rscript")
}
system2(rscript, c("-e", shQuote(exprs)), stdout = TRUE)
system2(rscript, c("-e", '"stopifnot(requireNamespace(\'lintr\'))"'), stdout = TRUE)
expect_identical(
system2(rscript, c("-e", shQuote(exprs)), stdout = TRUE),
"infix_spaces_linter|any_duplicated_linter"
Expand Down

0 comments on commit 508548b

Please sign in to comment.