I just installed Rstudio but unable to plot anything.
e.g.
x=c(1,2,3,1,3,4,1,3,4,1,1,2,3)
hist(x)
and I got this error:
Error in RStudioGD() :
Shadow graphics device error: r error 4 (R code execution error)
In addition: There were 50 or more warnings (use warnings() to see the first 50)
warnings()
Warning messages:
1: In grDevices:::png("/tmp/RtmpPkPH0s/2014fedfd6c041009a185a492193d67e.png", ... :
failed to load cairo DLL
!!
P.S. the same code works fine in R terminal.
Any ideas or helps would be appreciated.