[Rd] Sweave vignettes and bitmap on windows

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Wed, 19 Sep 2007 17:25:58 -0700

During vignette generation on Windows, Sweave seems to clean up before all graphics files are completely processed. For instance, if tmp.Rnw is:




C:\R\tmp>R CMD Sweave tmp.Rnw
Writing to file tmp.tex
Processing code chunks ...
 1 : echo term verbatim

You can now run LaTeX on 'tmp.tex'

C:\R\tmp>Error: /undefinedfilename in (C:\\DOCUME~1\\mtmorgan\\LOCALS~1\\Temp\\R Operand stack:

Execution stack:

   %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-   --nostringval-- --nostringval-- false 1 %stopped_push Dictionary stack:

   --dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)-- Current allocation mode is local
Last OS error: No such file or directory AFPL Ghostscript 8.54: Unrecoverable error, exit code 1

Note Sweave finishes before the error message appears. Adding Sys.sleep(10) appears to give ghostscript a chance to finish, and no error message is generated.

Are there solutions to this?

C:\R\tmp>R --version
R version 2.6.0 alpha (2007-09-05 r42789) Copyright (C) 2007 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License version 2.
For more information about these matters see


Martin Morgan
Bioconductor / Computational Biology

R-devel_at_r-project.org mailing list
Received on Thu 20 Sep 2007 - 00:27:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Sep 2007 - 02:42:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.