R CMD check is failing on macOS (ARM64, R release) due to ggplot2 API changes. The failures appear across multiple test files and suggest ggplot2 has migrated several internals to S7 classes.
Failing tests
test-geom_params.R — default params (e.g. size, stroke, color) are now <quosure/formula> instead of doubles
test-labels.R — get_labels() returns an <ggplot2::labels> S7 object instead of a plain list; default_label() / uses_labels() broken accordingly
test-mappings.R — get_mappings() returns an <ggplot2::mapping> S7 object instead of <uneval> list
test-stats.R — uses_stat_param() errors on outlier.alpha being an invalid parameter
Summary
[ FAIL 13 | WARN 72 | SKIP 0 | PASS 266 ]
Likely cause
A recent ggplot2 release migrated labels, mappings, and possibly params from S3/plain-list representations to S7 classes. ggcheck's internal helpers need to be updated to handle both the old and new representations, or to target the new S7 API directly.
Spotted via CI on the exit-netlify PR (#39) but pre-existing on main.
R CMD check is failing on macOS (ARM64, R release) due to ggplot2 API changes. The failures appear across multiple test files and suggest ggplot2 has migrated several internals to S7 classes.
Failing tests
test-geom_params.R— default params (e.g.size,stroke,color) are now<quosure/formula>instead of doublestest-labels.R—get_labels()returns an<ggplot2::labels>S7 object instead of a plain list;default_label()/uses_labels()broken accordinglytest-mappings.R—get_mappings()returns an<ggplot2::mapping>S7 object instead of<uneval>listtest-stats.R—uses_stat_param()errors onoutlier.alphabeing an invalid parameterSummary
Likely cause
A recent ggplot2 release migrated labels, mappings, and possibly params from S3/plain-list representations to S7 classes. ggcheck's internal helpers need to be updated to handle both the old and new representations, or to target the new S7 API directly.
Spotted via CI on the
exit-netlifyPR (#39) but pre-existing onmain.