easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

set cairo as default bitmaptype in etc/Rprofile.site

Open stdweird opened this issue 3 years ago • 3 comments

as EB has cairo as a build dep, it might make sense to set cairo as a site default in EBROOT/lib64/R/etc/Rprofile.site by creating that file and adding options(bitmapType = 'cairo') to it

if that is not set, and although it is claimed that cairo is dfault, it seems to try to use X11/Xlib by default; which might not work at all (on typical hpc node env) and is apparently more crappy then cairo

stdweird avatar Jan 06 '22 16:01 stdweird

Makes sense to me, although I didn't look into the specifics myself.

@fizwit Do you have any experience with this?

boegel avatar Jan 06 '22 16:01 boegel

At my site we have documented:


If you see a message of 'unable to open connection to X11 display' when generating plots in RStudio then you can do one of the following:

  • add options(bitmapType='cairo') before plotting.
  • change the plot command to include type="cairo".
  • add the text: options(bitmapType='cairo') to the file ~/.Rprofile (creating it, if required). This will ensure that the setting persists across each time you load RStudio on BEAR Portal.

We do also have people using R via X11 forwarding, but we've been moving those to the better experience of using RStudio Server. So, I am happy with the suggested change.

branfosj avatar Jan 06 '22 16:01 branfosj

@boegel so looks like --with-cairo is passed to ./configure

stdweird avatar Jan 06 '22 19:01 stdweird