Graphics error: Plot rendering error


#1

Hi everyone,

I just download the Rstudio and started learning today. However, when I was trying the code from “A introduction to R”, I had problem with “plot(x, y)”

> x<-rnorm(5)
> y<-rnorm(x)
> plot(x,y)
Error in gzfile(file, "wb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "wb") :
  cannot open compressed file 'C:/Users/?λ?/AppData/Local/Temp/RtmpAb3RKl/rs-graphics-007348ee-bf47-48c0-aeb5-0381e9f7eccc/ba86e3d6-325e-4ee7-9512-98ead40b83bd.snapshot', probable reason 'Invalid argument'
Graphics error: Plot rendering error

Can anyone tell me how to fix such problem? Thanks!


#2

Is ?λ? always/usualy in your file path, or is that peculiar to this error?


#3

I find that “?λ?” is the name of a file under “Users”…


#4

Hi! I change the path to another file instead of the " ?λ?" one and it works! Thank you so much!