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

Remove on.exit() from plot.epiparameter() #420

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Remove on.exit() from plot.epiparameter() #420

merged 3 commits into from
Nov 26, 2024

Conversation

joshwlambert
Copy link
Member

This PR addresses #409 by removing the call to on.exit() in plot.epiparameter() as the function no longer modifies graphics parameters in the body of the function. This now allows users to plot a matrix of plots using globally set graphics parameters which was being blocked by the use of on.exit() before.

To suppress warnings from set_state_inspector() I've manually restored the graphics parameters in unit tests that call plot() as calling this function modifies some of the parameters.

Plots snapshots are also updated (although the visuals of the plots are unchanged).

par() is no longer called in any functions so the lintr for par() is turned back on in the .lintr file.

@joshwlambert joshwlambert merged commit 11c352f into main Nov 26, 2024
8 checks passed
@joshwlambert joshwlambert deleted the graphic-par branch November 26, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant