Display on CARC Servers

I am using an R package on RStudio, which uses a Java package to create plots. However, this program requires a display to create the plots (I get a “java.awt.HeadlessException” when I run it in RStudio). Are there any CARC HPC services with a visible display, or are there other ways to avoid this error?

Check the package and function documentation to see if there’s a way to plot without a display. You could also try using the GUI Terminal app on OnDemand. Load the needed modules in the terminal and then open an R console with R and run the code or run a script with Rscript.