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.
guides()
1 parent c850c6d commit 530a5bfCopy full SHA for 530a5bf
tests/testthat/test-guides.R
@@ -1300,12 +1300,16 @@ test_that("old S3 guides can be implemented", {
1300
1301
withr::local_environment(my_env)
1302
1303
+ my_guides <- guides(x = guide_circle())
1304
+ expect_length(my_guides$guides, 1)
1305
+ expect_s3_class(my_guides$guides[[1]], "guide")
1306
+
1307
expect_snapshot_warning(
1308
expect_doppelganger(
1309
"old S3 guide drawing a circle",
1310
ggplot(mtcars, aes(disp, mpg)) +
1311
geom_point() +
- guides(x = "circle")
1312
+ my_guides
1313
)
1314
1315
})
0 commit comments