Skip to content

R CMD check failures on macOS: ggplot2 S7 compatibility #40

@gadenbuie

Description

@gadenbuie

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.Rget_labels() returns an <ggplot2::labels> S7 object instead of a plain list; default_label() / uses_labels() broken accordingly
  • test-mappings.Rget_mappings() returns an <ggplot2::mapping> S7 object instead of <uneval> list
  • test-stats.Ruses_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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions