I googled this to no avail. I must have unknowingly changed some setting because now when I print a plot or histogram rather than displaying the plot in the plots window, a new window opens with the plot. The title of the new window reads "R Graphics: Device 2 (ACTIVE)".
Go to Tools->Global Options->Rmarkdown. In "Show output preview in" select "Viewer Pane" Uncheck the box "Show output inline for all R Markdown documents"
There are two ways to open a new source window: Pop out an editor: click the Show in New Window button in any source editor tab. Tear off a pane: drag a tab out of the main window and onto the desktop; a new source window will be opened where you dropped the tab.
dev. off shuts down the specified (by default the current) device. If the current device is shut down and any other devices are open, the next open device is made current.
It is a problem that appeared with R 3.3.0 for some RStudio versions. You can check your version with version
in RStudio.
It should work with a RSudio 0.99.902.
For more details, check here.
Some code you ran probably pushed a new graphics device onto the stack. You can turn it off with:
> dev.off()
See the R documentation for managing output devices.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With