Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set cairo as default bitmaptype in etc/Rprofile.site #2647

Open
stdweird opened this issue Jan 6, 2022 · 3 comments
Open

set cairo as default bitmaptype in etc/Rprofile.site #2647

stdweird opened this issue Jan 6, 2022 · 3 comments

Comments

@stdweird
Copy link
Contributor

stdweird commented Jan 6, 2022

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

@boegel boegel added this to the 4.x milestone Jan 6, 2022
@boegel
Copy link
Member

boegel commented Jan 6, 2022

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

@fizwit Do you have any experience with this?

@branfosj
Copy link
Member

branfosj commented Jan 6, 2022

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.

@stdweird
Copy link
Contributor Author

stdweird commented Jan 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants