Skip to content

Commit 0f3432c

Browse files
authored
Register waldo comparison proxy for bloom joins (#17)
1 parent 60ed097 commit 0f3432c

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Suggests:
2828
knitr (>= 1.11),
2929
microbenchmark,
3030
bench,
31-
ggplot2
31+
ggplot2,
32+
waldo
3233
Config/testthat/edition: 3
3334
VignetteBuilder: knitr

R/zzz.R

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.onLoad <- function(libname, pkgname) {
2+
if (requireNamespace("waldo", quietly = TRUE)) {
3+
registerS3method(
4+
"compare_proxy",
5+
"bloomjoin",
6+
compare_proxy.bloomjoin,
7+
envir = asNamespace("waldo")
8+
)
9+
}
10+
}
11+
12+
compare_proxy.bloomjoin <- function(x, path, ...) {
13+
x <- strip_bloomjoin_attributes(x)
14+
NextMethod()
15+
}

0 commit comments

Comments
 (0)