How to draw in RStudio and not open a new window (R Graphics: Device (ACTIVE)?

Whenever I draw a plot in RStudio, I get a new device window that appears. It is not always so. I must have changed some settings. How to change the settings back so that the graphs are displayed in the RStudio graph window?

I studied the dev.off() and other dev functions very well. For instance:

 # Clear workspace rm(list=ls()) # create data set.seed(1) x <- rnorm(100, 0, 1) y <- rnorm(100, 3, 1) plot(x,y) 

creates a popup on a screenshot: enter image description here

I want the device to remain in the RStudio graph window in the lower right corner. Can anybody help? I saw a similar question here stating that the update will fix the problem. I updated in the last week. When I use sessionInfo() , I run R version 3.3.2 , which I consider the latest version of R.

+6
source share
3 answers

Others who love me may still run into this problem:

This is probably due to updating R to 3.3.2 and fixed by installing a newer version of RStudio. In my case, 1.0.136 did the trick.

+2
source

Go to the R studio menu bar and Tools-> Global options-> R Mark down At this point, select the "window" from this list in the "show output preview in:", then apply

0
source

I solved this problem by updating RStudio (Help → check for updates). The new version of RStudio I upgraded to version 1.1.383, and this problem has been fixed. I currently have version 3.4.3 for R.

0
source

Source: https://habr.com/ru/post/1012459/


All Articles