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

Stress testing #7

Open
thomasp85 opened this issue Apr 24, 2024 · 2 comments
Open

Stress testing #7

thomasp85 opened this issue Apr 24, 2024 · 2 comments

Comments

@thomasp85
Copy link
Member

I still get the occasional crash when resizing windows... needs to investigate

@teunbrand
Copy link
Contributor

teunbrand commented Jun 1, 2024

Unrelated to resizing, but I also encountered a crash when I was (foolishly) trying to modify <marquee_style> objects manually (as modify_style() works on style sets, not individual styles).
Recall that list-assignment of NULL does not set a list element to NULL, but rather removes the element from the list.

Warning

Crashes R sessions

library(marquee)

tag <- style()
tag$color <- NULL

style <- classic_style() |>
  modify_style("foo", tag)

grob <- marquee_grob("Lorem {.foo ipsum}", style)

@thomasp85
Copy link
Member Author

Fixed by 697bdbe. you can now modify style objects with modify_style() and standard setters are blocked

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

No branches or pull requests

2 participants