We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2475fd commit 047d58bCopy full SHA for 047d58b
tests/testthat/test-labellers.R
@@ -1,3 +1,11 @@
1
+test_that("facets convert labeller to function", {
2
+ f <- facet_grid(foo ~ bar, labeller = "label_both")
3
+ expect_type(f$params$labeller, "closure")
4
+
5
+ f <- facet_wrap(foo ~ bar, labeller = "label_value")
6
7
+})
8
9
test_that("label_bquote has access to functions in the calling environment", {
10
labels <- data.frame(lab = letters[1:2])
11
attr(labels, "facet") <- "wrap"
0 commit comments