Skip to content
Back to formatted view

Raw Message

Message-ID: <CAErODj8K8gbM6HxQvtQuaL6ypKhtC90d6_H+oAEfdE1U8kkWtw@mail.gmail.com>
Date: 2017-01-19T16:52:16Z
From: Paul Johnson
Subject: xvfb? cron job updates R packages, fails on some requiring X11

In Centos 7 systems, I wrote a script that runs on the cron and I
notice some package updates and installs fail like this:


Error : .onLoad failed in loadNamespace() for 'iplots', details:
  call: .jnew("org/rosuda/iplots/Framework")
  error: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an
operation which requires it.
Error: loading failed
Execution halted
ERROR: loading failed
* removing ?/usr/share/R/library/iplots?
* restoring previous ?/usr/share/R/library/iplots?


I can log in interactively and run  the same install successfully.

I understand I need something like xvfb to simulate an X11 session,
but I don't understand how to make it work.  Can one of you give me an
idiot's guide on what to do?

pj


-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.