Not able to trigger the graphics using RSTUDIO

June 17, 2019 @bibhusisa bibhusisa pattanaik

@bibhusisa wrote:

Hi ,

I have added the parameter as rsession-which-r=/opt/cloudera/extras/R-latest/bin/R in /etc/rstudio/rserver.conf and did the rstudio stop and start, but still i am getting the below error while trying to trigger the graphics. You can find the information related to RStudio as mentioned below. Please suggest what needs to be done.

Error in RStudioGD() : 
  Shadow graphics device error: r error 4 (R code execution error)
In addition: Warning message:
In grDevices:::png("/tmp/Rtmpugt1Dx/f3785ca553194f7db553869d743cb903.png",  :
  unable to open connection to X11 display ''

Below are the information related to RStudio:

capabilities()
       jpeg         png        tiff       tcltk         X11        aqua    http/ftp     sockets 
      FALSE       FALSE       FALSE        TRUE       FALSE       FALSE        TRUE        TRUE 
     libxml        fifo      cledit       iconv         NLS     profmem       cairo         ICU 
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE       FALSE        TRUE 
long.double     libcurl 
       TRUE        TRUE 
Sys.getenv("DISPLAY")
[1] ":0"

> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.10 (Santiago)# This is a "SLES Expanded Support platform release 6.10"# The above "Red Hat Enterprise Linux Server" string is only used to # keep software compatibility.

locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggplot2_2.1.0

loaded via a namespace (and not attached):
[1] colorspace_1.2-6 scales_0.4.0     plyr_1.8.4       tools_3.3.1      gtable_0.2.0    
[6] Rcpp_0.12.5      grid_3.3.1       munsell_0.4.3

Thanks and Regards
Bibhu

Posts: 5

Participants: 3

Read full topic

Previous Article
cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer

@w_t_bradley wrote: I'm running into this error when I build a company internal ...

Next Article
Screencast: Collaboration with RStudio Connect - Push Button Publishing + Github.
Screencast: Collaboration with RStudio Connect - Push Button Publishing + Github.

@kellobri wrote: This tutorial shows you best practices for collaborating with c...