use xvfb-run with the same server argument ("-screen 0 1280x1024x24") as R's checktools