-
Notifications
You must be signed in to change notification settings - Fork 19
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
Reset par on clear #15
Comments
The "clean" button in RStudio kills the graphics device which results in opar <- par() # on startup
# ...
par(opar) # on "clean" Or is resetting the mfrow argument after clean sufficient? par(mfrow = c(1, 1)) I am not exactly sure what other settings of |
This is an old session, but I do think it's more convenient if there's a button or command to reset the |
Thank you for your request, I agree and have added it to the 1.3 tracking issue. |
Thank you for waiting patiently. I just added a parameter hgd(
... ,
reset_par = getOption("httpgd.reset_par", FALSE)
) that toggles this functionality. |
Does it make sense to reset
par
on clear (RStudio behavior)?For, example, the following code uses
par()
before plot.Then if users clicks
Clear
button, then the plot is gone.The difference appears when user then creates a new simple plot:
plot(rnorm(100))
In RStudio, when the plot is all cleared, the
par
is reset too so that a new plot will revert topar(mfrow = c(1, 1))
. In httpgd at the moment, it is not reverted to defaultpar
.I'm wondering which makes more sense?
The text was updated successfully, but these errors were encountered: