Hello,
I've been trying to use odfWeave and prettyR packages to create documents with both text and graphs, but so far I
haven't been very lucky...
With the function R2html () in prettyR package, when I try to use a source file, which works perfectly if I run it
directly form R using "source("file")",
it works for the first part and then it makes a mess, i guess something might be wrong in my formatting or the
function R2html doesnt recognize the function if()
because i get errors like this one
"Error in parse(cmdcon) : unexpected 'if' at
1: for (i in 1:length(resultList)){ tempSummary <- try(summary(resultList[[i]]), silent = TRUE) if"
everytime there is a if.
I tried with the function htmlize and it works for the text (like summaries) but I didn't manage to get the plots on
the html file
I tried to use the funcion HTMLgraph but I couldn't understand what it does and what its arguments are (listfile,
graphfile)
With odfWeave I tried to download it, and saw that it depends on XML package. If I try to load the odfWeave package
with
library(odfWeave) I get this message:
Loading: XML
Error: package 'XML' not loaded
Warning message:
In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc) :
there is no 'XML' package
The problem is that on the CRAN web site the XML package is not available for windows...
Any suggestions?
Thanks and sorry for bothering you all again with this subject...
odfWeave & prettyR
3 messages · lauramorgana at bluewin.ch, Dieter Menne, Max Kuhn
lauramorgana <at> bluewin.ch <lauramorgana <at> bluewin.ch> writes:
Hello, I've been trying to use odfWeave and prettyR packages to create documents with
both text and graphs, but so far I haven't been very lucky... ...
library(odfWeave) I get this message: Loading: XML Error: package 'XML' not loaded
The problem is that on the CRAN web site the XML package is not available for
windows... I just checked, and it is available for Windows from my mirror (Austria) and from ETH (assuming you are CH). However, there was a problem when using XML with Umlauts and the like in a more recent version of XML on Windows (and on Windows only). So after you installed XML (a must), first try with the odfWeave standard examples. If these work, add an ?? somewhere, try again. Dieter
The problem is that on the CRAN web site the XML package is not available for
windows... I just checked, and it is available for Windows from my mirror (Austria) and from ETH (assuming you are CH).
I would use XML ~ v1.90 for windows to use with odfWeave. You can get it at: http://cran.us.r-project.org/bin/windows/contrib/2.5/ Max