use R; &R::startR("--silent"); "X11" to simply pull up on screen R::call("pdf");