[R][Rdev] any way to generate "bitmap" (tif,jpeg,png etc) files inR CMD BATCH

Roger Bivand Roger.Bivand at nhh.no
Fri Feb 25 16:31:44 CET 2005


On Fri, 25 Feb 2005, Oleg Sklyar wrote:

> Hi Community,
> 
Use a virtual framebuffer - an example of an earlier question about this 
on the list is:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/15988.html

(the searchable archives have lots of good tips)

> here is the problem, Linux problem (reported to work on Windows). I need 
> to generate graphical output in any of bitmap format under the 'R CMD 
> BATCH'. Whereas the script generating png-s works perfectly in the R 
> session, such things as X11, png and jpeg are not usable in BATCH (they 
> cannot be switched on by --gui-X11 etc) and X11 is prompted to be 
> required for png. At the same time, such things as postscript and pdf, 
> which are generally X-independent work fine. The problem is that as a 
> result I need something previewable in the web browser: png, jpeg. Any 
> suggestions how to proceed? Generally I could use command line linux 
> tools to convert from almost any bitmpa format to the required png or 
> jpeg, but it would be nicer to have them as direct R output.
> 
> Kind regards
> Oleg
> 
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no




More information about the R-help mailing list