[R] Combine R2HTML and Rcmd BATCH?
Bos, Roger
roger.bos at us.rothschild.com
Tue Jul 17 13:55:54 CEST 2007
Dieter,
I use htmlize in library prettyR to produce a HTML report at the end of
a long batch file and this process works fine. I posted my call to
htmlize below, but it would take too much modification for me to produce
a working example. My guess is that it is something else that is
messing up the process. I bet if you created a very simple example it
would work. And if it didn't work, you could post it here and then
people could try to find out why it doesn't work. If it does work, you
can add to it gradually until you find the problem. This is how I got
htmlize to work.
Roger
library(prettyR)
today <- as.Date(Sys.time(), format="%m/%d/%Y")
htmlize(Rfile="//rinnycs0051/research/R_HOME/morningNotesMaster.r",
HTMLbase="morningNotes", HTMLdir="//rinnycs0051/ramdata/morningNotes",
title="RAM Morning Notes " %+% today, echo=FALSE, do.nav=FALSE)
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dieter Vanderelst
Sent: Tuesday, July 17, 2007 7:06 AM
To: r-help at stat.math.ethz.ch
Subject: [R] Combine R2HTML and Rcmd BATCH?
Hi All,
I have an R script that spawns output in the form of an HTML page. This
is done by the R2HTML package.
Now I want to run the same script using Rcmd BATCH. However, it seems
that it is not possible to use R2HTML in this case.
My script ends with this error message:
#########################
Error in dev.print(png, file = AbsGraphFileName, width = Width, height =
Height, :
can only print from screen device
Execution halted
#########################
I can not find how to work around this problem in the R2HTML manual or
the help archives.
Has anybody done a similar thing before? Any suggestions?
Greetings,
Dieter
--
Dieter Vanderelst
d.vanderelst at tue.nl
Department of Industrial Design
Designed Intelligence
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
********************************************************************** *
This message is for the named person's use only. It may
contain confidential, proprietary or legally privileged
information. No right to confidential or privileged treatment
of this message is waived or lost by any error in
transmission. If you have received this message in error,
please immediately notify the sender by e-mail,
delete the message and all copies from your system and destroy
any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message
if you are not the intended recipient.
More information about the R-help
mailing list