Skip to content

Commit 84f3a3d

Browse files
committed
scoping x and y
1 parent 0ef309a commit 84f3a3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# version 1.0-17
22

3+
* `st_filter.sf()` correctly scopes `x` and `y` arguments using !! operator
4+
35
* `[.sfc` and `[<-.sfc` use matrix/array type subsetting for `sfc` objects that have a `dim` attribute
46

57
* add `st_exterior_ring()` to extract exterior rings (remove holes); #2406

R/join.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,5 @@ st_filter.sf = function(x, y, ..., .predicate = st_intersects) {
189189
if (!requireNamespace("dplyr", quietly = TRUE))
190190
stop("dplyr is not installed: install first?")
191191

192-
dplyr::filter(x, lengths(.predicate(x, y, ...)) > 0) # will call filter.sf
192+
dplyr::filter(x, lengths(.predicate(!!x, !!y, ...)) > 0) # will call filter.sf
193193
}

0 commit comments

Comments
 (0)