Skip to content

Commit 6f1badc

Browse files
committed
relax coord requirements
1 parent 61f1ef6 commit 6f1badc

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

R/coord-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,6 @@ check_coord_limits <- function(
271271
if (is.null(limits)) {
272272
return(invisible(NULL))
273273
}
274-
check_numeric(limits, arg = arg, call = call)
274+
check_object(limits, is.vector, "a vector", arg = arg, call = call)
275275
check_length(limits, 2L, arg = arg, call = call)
276276
}

tests/testthat/_snaps/coord-cartesian.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cartesian coords throws error when limits are badly specified
22

3-
`xlim` must be a <numeric> vector, not a <ScaleContinuousPosition> object.
3+
`xlim` must be a vector, not a <ScaleContinuousPosition> object.
44

55
---
66

tests/testthat/_snaps/coord-flip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# flip coords throws error when limits are badly specified
22

3-
`xlim` must be a <numeric> vector, not a <ScaleContinuousPosition> object.
3+
`xlim` must be a vector, not a <ScaleContinuousPosition> object.
44

55
---
66

tests/testthat/_snaps/coord-map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coord map throws error when limits are badly specified
22

3-
`xlim` must be a <numeric> vector, not a <ScaleContinuousPosition> object.
3+
`xlim` must be a vector, not a <ScaleContinuousPosition> object.
44

55
---
66

tests/testthat/_snaps/coord-transform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coord_trans() throws error when limits are badly specified
22

3-
`xlim` must be a <numeric> vector, not a <ScaleContinuousPosition> object.
3+
`xlim` must be a vector, not a <ScaleContinuousPosition> object.
44

55
---
66

tests/testthat/_snaps/coord_sf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# coord_sf() throws error when limits are badly specified
2323

24-
`xlim` must be a <numeric> vector, not a <ScaleContinuousPosition> object.
24+
`xlim` must be a vector, not a <ScaleContinuousPosition> object.
2525

2626
---
2727

0 commit comments

Comments
 (0)