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)".
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
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.