You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you consider using withr::local_par to set the graphical parameters?
The current code sets the graphical windows to par(mfrow = c(1, 1)) at the end of functions. However, this line of code won't be executed if the functions exit prematurely. It also forcibly set the user's graphical windows to c(1, 1) which might not be desirable.
withr::local_par will only set the parameters in the local scope and revert the parameters back to its original state whenever functions stop running.
The text was updated successfully, but these errors were encountered:
Hi,
Would you consider using
withr::local_par
to set the graphical parameters?The current code sets the graphical windows to
par(mfrow = c(1, 1))
at the end of functions. However, this line of code won't be executed if the functions exit prematurely. It also forcibly set the user's graphical windows toc(1, 1)
which might not be desirable.withr::local_par
will only set the parameters in the local scope and revert the parameters back to its original state whenever functions stop running.The text was updated successfully, but these errors were encountered: