Paul
2010-Feb-28 09:54 UTC
[R] Slightly OT: Does anyone use latex2rtf with sweave output ?
Hello, I'm trying to use R (and Sweave) to pull some data out of a database and produce some standard reports. unfortunaltey, the people who want the reports want them in an editable format so they can add wordy bits to the automatically generate tables and graphs. My current plan is to use R to call a standard sweave document and pass variables to tell what data to pull out of the db, then use latex2rtf to turn the tex file into rtf. However I'm stuck with latex2rtf. It's chocking on some of the latex that sweave wrote (such as {Schunk} {Soutput} {Sinput}. Has anyone used latex2rtf succesfully with sweave and is willing to share their experiences ? Thanks Paul.
Denis Teysseyre
2010-Feb-28 13:20 UTC
[R] Slightly OT: Does anyone use latex2rtf with sweave output ?
Paul <paul <at> paulhurley.co.uk> writes: Hi Paul, Why not another option like StatWeave based on OpenOffice ? http://www.cs.uiowa.edu/~rlenth/StatWeave/ HTH Regards Denis
Frank E Harrell Jr
2010-Feb-28 15:40 UTC
[R] Slightly OT: Does anyone use latex2rtf with sweave output ?
Paul wrote:> Hello, > > I'm trying to use R (and Sweave) to pull some data out of a database and > produce some standard reports. unfortunaltey, the people who want the > reports want them in an editable format so they can add wordy bits to > the automatically generate tables and graphs. > > My current plan is to use R to call a standard sweave document and pass > variables to tell what data to pull out of the db, then use latex2rtf to > turn the tex file into rtf. However I'm stuck with latex2rtf. It's > chocking on some of the latex that sweave wrote (such as {Schunk} > {Soutput} {Sinput}. Has anyone used latex2rtf succesfully with sweave > and is willing to share their experiences ? > > Thanks > > Paul.More general solutions may be found at http://biostat.mc.vanderbilt.edu/SweaveConvert One of the many solutions posted there is an interesting web site that converts pdf output to Word remarkably well. Our web page has the pdf and resulting .doc file for an advanced example containing complex tables containing micrographics in some of the table cells. Simpler html conversions are also worth trying. Frank>-- Frank E Harrell Jr Professor and Chairman School of Medicine Department of Biostatistics Vanderbilt University
Sharpie
2010-Feb-28 18:03 UTC
[R] Slightly OT: Does anyone use latex2rtf with sweave output ?
Paul Hurley wrote:> > Hello, > > I'm trying to use R (and Sweave) to pull some data out of a database and > produce some standard reports. unfortunaltey, the people who want the > reports want them in an editable format so they can add wordy bits to > the automatically generate tables and graphs. > > My current plan is to use R to call a standard sweave document and pass > variables to tell what data to pull out of the db, then use latex2rtf to > turn the tex file into rtf. However I'm stuck with latex2rtf. It's > chocking on some of the latex that sweave wrote (such as {Schunk} > {Soutput} {Sinput}. Has anyone used latex2rtf succesfully with sweave > and is willing to share their experiences ? > > Thanks > > Paul. >Some possibilities: - Use a different output format that can be more easily converted to Word or RTF. Possibilities are HTML via the R2HTML Sweave driver or an Open Office document via the odfWeave driver. - Use a different report generation tool that doesn't add as much extra markup to the output, such as brew. - Try converting the tex to HTML instead of RTF-- plasTeX or tex4ht may be more robust (though I still doubt they would know what to do with the Schunk, Sin and Sout tags as those are non-standard LaTeX). I happen to be working on a project that may end up doing the same thing-- automatically generated reports containing summary graphs and tables. I love LaTeX myself, but I'm currently planning to produce the reports in HTML format just in case someone less typographically inclined needs to edit them. Good luck! -Charlie -- View this message in context: http://n4.nabble.com/Slightly-OT-Does-anyone-use-latex2rtf-with-sweave-output-tp1572533p1572839.html Sent from the R help mailing list archive at Nabble.com.