Error when plotting on RStudio: Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error)
0
0
Entering edit mode
3.4 years ago

I am trying to plot something simple in Rstudio and this error shows up:

plot(cars)

Error in RStudioGD() :

Shadow graphics device error: r error 4 (R code execution error)

Además: Warning messages:

1: In grDevices:::png("C:/Users/Usuario/AppData/Local/Temp/RtmpuYmueE/bcbe775221654e0e80c35484134dae4c.png", : unable to open file 'C:/Users/Usuario/AppData/Local/Temp/RtmpuYmueE/bcbe775221654e0e80c35484134dae4c.png' for writing

2: In grDevices:::png("C:/Users/Usuario/AppData/Local/Temp/RtmpuYmue/bcbe775221654e0e80c35484134dae4c.png", : opening device failed

I tried updating R and Rstudio, and the problem is still there. I also manually installed the R tools manually and it still does not work.

I am working on Windows, if it makes any difference.

Any help would be welcome, I'm in complete loss.

R Rstudio Error Plot • 3.0k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode

Following suggestion from @makrez try to recreate the temp folder: C:/Users/Usuario/AppData/Local/Temp/RtmpuYmueE

ADD REPLY
0
Entering edit mode

I already did that and the error still shows up, but this time with another name for the directory in the Temp folder...

ADD REPLY

Login before adding your answer.

Traffic: 2453 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6