Skip to content

Fix R 4.6.0 compatibility#10

Merged
mskyttner merged 6 commits into
masterfrom
fix-r46-compatibility
May 11, 2026
Merged

Fix R 4.6.0 compatibility#10
mskyttner merged 6 commits into
masterfrom
fix-r46-compatibility

Conversation

@mskyttner
Copy link
Copy Markdown
Contributor

@mskyttner mskyttner commented May 11, 2026

Summary

  • Replace extrafont (archived from CRAN Sep 2025, root cause: Rttf2pt1 no longer compiles) with systemfonts for font detection; remove all extrafont:: calls from zzz.R and import_* functions; remove Remotes: wch/Rttf2pt1
  • Rename element_line(size=)element_line(linewidth=) in theme-kth.R (11 occurrences, deprecated in ggplot2 3.4.0)
  • Remove deprecated scale_name= and rename trans=transform= in continuous_scale() calls in scales.R (deprecated in ggplot2 3.5.0)
  • Raise version floors to R >= 3.3.0 and ggplot2 >= 3.5.0 to match the API already in use
  • Add guide = waiver() and n.breaks parameters to scale_x/y_percent/comma; guide was previously hardcoded to "none" suppressing all axis guides unconditionally
  • Remove duplicate darkgray key from hexes_neo() which could cause a names-length mismatch error

Test plan

  • R CMD check passes with 0 errors, 0 warnings, 0 notes

mskyttner added 2 commits May 11, 2026 17:36
- Replace extrafont (archived CRAN Sep 2025) with systemfonts for font
  detection in .onAttach; drop extrafont::font_import() calls from
  import_* functions and extrafont::loadfonts() from zzz.R
- Remove Remotes: wch/Rttf2pt1 (root cause of extrafont archival)
- Rename element_line(size=) to element_line(linewidth=) in theme-kth.R
  (deprecated in ggplot2 3.4.0)
- Remove scale_name= and rename trans= to transform= in continuous_scale()
  calls in scales.R (both deprecated in ggplot2 3.5+)
- Add CLAUDE.md to .gitignore and .Rbuildignore
- Raise Depends R >= 3.3.0 and Imports ggplot2 >= 3.5.0 to match the
  transform= API already in use
- Add n.breaks and guide=waiver() parameters to scale_x/y_percent/comma;
  guide was previously hardcoded to "none" suppressing all axis guides
- Remove duplicate darkgray key from hexes_neo() which could cause
  'names attribute length mismatch' error if gray key were absent
- Add .claude to .Rbuildignore
@mskyttner mskyttner force-pushed the fix-r46-compatibility branch from d15c035 to a4cf8e2 Compare May 11, 2026 15:38
mskyttner added 4 commits May 11, 2026 17:47
Align hex values in hexes_neo(), _variables.scss, and compiled Bootstrap CSS
files with the official KTH style guide at intra.kth.se/style/en/foundations/colors:
sand #EBE5E0→#e6e1dd, darkblue #000061→#08004f, lightblue #DEF0FF→#e0edfc,
digitalblue #0029ED→#221dd9, red #E86A58→#d8351e, darkred #78001A→#bf2c17,
green #4DA060→#3f824e, darkgreen #0D4A21→#366f43, lightgreen #C7EBBA→#d8ffe7,
lightyellow #FFF0B0→#FFF080.
@mskyttner mskyttner merged commit faf1d31 into master May 11, 2026
3 checks passed
@mskyttner mskyttner deleted the fix-r46-compatibility branch May 11, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant