Safer hook management#425
Merged
grantmcdermott merged 8 commits intograntmcdermott:mainfrom Jun 15, 2025
Merged
Conversation
Collaborator
Author
|
CI error says this: Error: `cairo` must be a logical flag.
Execution haltedbut I have no idea what I did in the PR to generate it. Thoughts? |
Collaborator
Author
|
Oh, I found the issue. Tests now pass. |
Owner
|
Super thanks mate. I've been slammed, but hopefully able to review later today. |
Owner
|
One thing in advance, please add a news item if you can. Takk. |
Owner
|
Confirmed fix for yihui/knitr#2392 This is great, thanks @vincentarelbundock! |
This was referenced Jul 7, 2025
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@grantmcdermott and @etiennebacher,
Here’s a first attempt to resolve the
tinythemein a loop issue. The idea is:tpar()sets a hook, we save that hook to the.tinyplotenvironment.tinytheme()resets the theme viainit_tpar(), we retrieve the hooks from the.tinyplotenvironment and remove only the"before.plot.new"hooks that areidentical()to those.Implementation notes:
set_hooks()andremove_hooks()functions from theevaluatepackage and made a few minor changes to them. That package is MIT and included a note at the top of the file..tinyplotenvironment, I added aget_environment_variable()andset_environment_variable()functions.The tests pass on my computer, and this seems to work.
I’m not exactly sure I know all the behaviors that were broken, so I’d appreciate if you could take this for a spin.