nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
382 stars 19 forks source link

Can't clear previous plots when re-running a new R script #132

Closed DrAnnaSchwartz closed 7 months ago

DrAnnaSchwartz commented 1 year ago

Unless I close the terminal and open a new r terminal, all previous plots are shown in the plot viewer, like the one below:

image

Is there a way to clear the previous plots when running a new r script?

Another question - Rplots.pdf is generated everytime I ran a R script containing plot functions. How can I suppress the pdf output?

Thanks for your help!

nx10 commented 7 months ago

Thank you for reaching out, but this seems to be an issue for the VSCode R integration and not specific to httpgd - Clearing the plot history is be something that vscode-r would need to take care of (as httpgd does not know anything about which script is open at what time). Also Rplots.pdf is not produced by httpgd.