Hi,
I am trying to use the package R.devices to simultaneously print a plot inline in a Quarto document and save it to a png file. I opened an issue in the R.devices repository, but according to the maintainer he needs to know how to open a RStudioGD device so it works everywhere (it print inline in a Quarto file or to the plot viewer according to the settings). Do you know how to achieve that?
Right now, when selecting RStudioGD as the output device, the plot is opened in a new window named Quartz when the code is run from a R file while it is not shown at all when the code is executed inside a Quarto document with inline plotting.
Thank you very much!