Skip to content

cleanup after standard - remove redundant exports and vignettes - #26

Open
tkranenburgrivm wants to merge 5 commits into
mainfrom
feat/cleanup_after_standard
Open

tkranenburgrivm wants to merge 5 commits into
mainfrom
feat/cleanup_after_standard

Conversation

@tkranenburgrivm

Copy link
Copy Markdown
Collaborator

No description provided.

@hypebright hypebright left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hypebright

Copy link
Copy Markdown
Contributor

@tkranenburgrivm Heads-up: the release flow PR (#27) fixes lint and formatting issues in some of the files this PR touches (R/ro_ply_cursor.R, R/ro_ply_keyboard_accessibility.R, R/ro_ply_standard.R, the vignettes). Once #27 is merged, this PR needs main merged in; expect a few conflicts there, mostly whitespace. The new CI (air + lintr) also runs on this PR then.

hypebright and others added 2 commits November 21, 2026 16:41
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t exported

- ro_ply_theme(fig, ...) styles the figure directly, like the other *_theme()
  functions; ro_ply_add_theme() is removed
- Mark the functions wired into ro_ply_standard() as @Keywords internal and fix
  blank lines that detached three roxygen blocks
- Keep ro_ply_focus_linechart() exported (used by ROvis.shiny)
- Vignette: explain ro_ply_standard() vs ro_ply_theme(), add a styling-only
  example, drop the theme_rivm list it relied on
- README example uses ro_ply_standard(); NEWS entry for the breaking changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hypebright
hypebright force-pushed the feat/cleanup_after_standard branch from 368e830 to f38fd91 Compare November 21, 2026 15:44
@hypebright

Copy link
Copy Markdown
Contributor

@tkranenburgrivm I've taken this over, same as echarts #14: merged main in and pushed one commit on top. Could you review it and leave your feedback as a comment? Once you're happy, I'll dismiss my "changes requested" and approve.

What changed, per the overview on ROvis.echarts#14:

  • ro_ply_theme(fig, ...) stays exported and now styles the figure directly (like ro_e_theme()); ro_ply_add_theme() is removed.
  • Your unexports are kept, now with @keywords internal. Exception: ro_ply_focus_linechart() stays exported, because ROvis.shiny's graph panel uses it and it returns Shiny CSS, so it can't go into ro_ply_standard().
  • One vignette (plotly-figures-standard.qmd), now with a short "Styling only" section. README example uses ro_ply_standard(), NEWS lists the breaking changes.

Reprex:

pak::pak("rivm-syso/ROvis.plotly@feat/cleanup_after_standard")
library(ROvis.plotly)
library(plotly)

fig <- plot_ly(
  data.frame(sex = c("Man", "Vrouw"), n = c(1234, 1675)),
  x = ~sex, y = ~n, type = "bar"
)

ro_ply_standard(fig, type = "bargraph", title = "Aantal cases per geslacht")
ro_ply_theme(fig)

What to check:

  1. ro_ply_standard() looks and behaves as before (Tab to the chart, arrow keys move between bars).
  2. ro_ply_theme(fig) gives the same styling, without keyboard navigation and with the plotly toolbar.
  3. ROvis.plotly::ro_ply_cursor gives "not an exported object"; ROvis.plotly:::ro_ply_cursor still works.

Matches echarts-in-ro-style and ggplot2-in-ro-style; title "plotly in RO style".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants