Skip to content

Commit

Permalink
Remove unnecessary braces
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Dec 10, 2023
1 parent 2d27f7a commit 4e2af31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ linters: linters_with_defaults(
cyclocomp_linter = NULL,
line_length_linter(120),
object_name_linter(c("camelCase", "snake_case", "symbols"))
)
)
exclusions: list(
"revdep",
"vignettes"
)
)
2 changes: 1 addition & 1 deletion tests/testthat/helper-requireNamespace-mock.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ expect_package_error <- function(pkg, code, msg) {
with_mocked_bindings({
expect_error(code, paste0("`", pkg, "` must be installed"))
},
requireNamespace = function(package, ...) { package != pkg },
requireNamespace = function(package, ...) package != pkg,
.package = "base"
)
}
8 changes: 4 additions & 4 deletions tests/testthat/test-transform.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
context("Transforming coordinate data frames")

test_that("dependencies are verified", {
expect_package_error("sf", { usmap_transform(data.frame()) })
expect_package_error("sp", { usmap_transform(data.frame()) })
expect_package_error("sf", { usmap_crs() })
expect_package_error("sp", { usmap_crs() })
expect_package_error("sf", usmap_transform(data.frame()))
expect_package_error("sp", usmap_transform(data.frame()))
expect_package_error("sf", usmap_crs())
expect_package_error("sp", usmap_crs())
})

test_that("data frame with AK and HI points is transformed", {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-usmap.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
context("Retrieving US map data")

test_that("dependencies are verified", {
expect_package_error("usmapdata", { us_map() })
expect_package_error("usmapdata", us_map())
})

test_that("data frame is returned", {
Expand Down

0 comments on commit 4e2af31

Please sign in to comment.