Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with ggplot2 3.6.0 #303

Merged
merged 25 commits into from
Feb 13, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
088e17f
Merge pull request #273 from snlab-ch/develop
jhollway Jul 20, 2023
dde0d1d
Merge pull request #275 from snlab-ch/develop
jhollway Oct 4, 2023
63312ff
Merge pull request #276 from snlab-ch/develop
jhollway Oct 11, 2023
9708d02
Merge pull request #277 from snlab-ch/develop
jhollway Oct 18, 2023
44bcc2b
Merge pull request #278 from snlab-ch/develop
jhollway Oct 25, 2023
96314c5
Merge pull request #279 from snlab-ch/develop
jhollway Nov 1, 2023
14f331d
Merge pull request #280 from snlab-ch/develop
jhollway Nov 2, 2023
5dc54bf
Merge pull request #281 from snlab-ch/develop
jhollway Nov 8, 2023
d3d3261
Merge pull request #282 from snlab-ch/develop
jaeltan Nov 15, 2023
a52d23a
Merge pull request #283 from snlab-ch/develop
jaeltan Dec 6, 2023
11f1a19
Merge pull request #285 from snlab-ch/develop
jhollway Dec 13, 2023
7aff1cb
Merge pull request #286 from snlab-ch/develop
jhollway Dec 17, 2023
ea4f16e
Merge pull request #288 from stocnet/develop
jhollway Jan 24, 2024
2146895
Merge pull request #289 from stocnet/develop
jhollway Jan 25, 2024
4082e57
Merge pull request #290 from stocnet/develop
jhollway Jan 25, 2024
d58d036
Merge pull request #293 from stocnet/develop
jhollway Mar 7, 2024
650b5c5
Merge pull request #294 from stocnet/develop
jhollway Mar 7, 2024
74b8590
Merge pull request #295 from stocnet/develop
jhollway Jul 19, 2024
88dfd15
Merge pull request #296 from stocnet/develop
jhollway Jul 19, 2024
fbeaea8
Merge pull request #298 from stocnet/develop
jhollway Sep 4, 2024
10e0b02
Merge pull request #299 from stocnet/develop
jhollway Sep 4, 2024
999d4f4
Merge pull request #300 from stocnet/develop
jhollway Nov 6, 2024
53a08f4
Merge pull request #301 from stocnet/develop
jhollway Nov 30, 2024
e291d95
Merge pull request #302 from stocnet/develop
jhollway Nov 30, 2024
647d858
stabilise tests
teunbrand Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions tests/testthat/test-model_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ test_that("cug plot works", {
expect_s3_class(cugplot$layers[[1]], "ggproto")
expect_s3_class(cugplot$layers[[1]]$geom, "GeomDensity")
expect_s3_class(cugplot$layers[[1]]$stat, "StatDensity")
expect_identical(cugplot$labels$x, "Statistic")
expect_identical(cugplot$labels$y, "Density")
labels <- if ("get_labs" %in% getNamespaceExports("ggplot2")) {
ggplot2::get_labs(cugplot)
} else {
cugplot$labels
}
expect_identical(labels$x, "Statistic")
expect_identical(labels$y, "Density")
})

qapplot <- plot(qaptest)
Expand All @@ -70,6 +75,11 @@ test_that("qap plot works", {
expect_s3_class(qapplot$layers[[1]], "ggproto")
expect_s3_class(qapplot$layers[[1]]$geom, "GeomDensity")
expect_s3_class(qapplot$layers[[1]]$stat, "StatDensity")
expect_identical(qapplot$labels$x, "Statistic")
expect_identical(qapplot$labels$y, "Density")
labels <- if ("get_labs" %in% getNamespaceExports("ggplot2")) {
ggplot2::get_labs(cugplot)
} else {
cugplot$labels
}
expect_identical(labels$x, "Statistic")
expect_identical(labels$y, "Density")
})