I am working on a LSF server and using a bsub command to run a perl wrapper script to an R script. Here is my command:
bsub -XF -n 1 -R "rusage[mem=16]" -We 60 -J <job_array> -o out.log 'script.pl <script arguments>'
This perl script is calling an R script that does some calculations, and then prints a PNG plot. R is set up on our LSF cluster in such a way that it doesn’t allow to initiate a PNG device without enabling X11 forwarding. I have X11 forwarding enabled and this works fine until I want to use Job arrays. According to the LSF manual, job arrays are incompatible with X11 forwarding.
This would require us to change the scripts to write to PDF files instead of PNG, however, we do not want to change the scripts that we are currently using, as those are part of a bigger, publicly available pipeline and we would not want any discrepancies between the publicly available and the locally installed version.
Is there anyway we can use R to write PNG plots without X11 forwarding?
Thanks!