[R] How to turn a LaTeX Sweave file (Rnw) into .HTML/.odf/.docx? (under windows)

Joshua Wiley jwiley.psych at gmail.com
Fri Sep 23 05:19:02 CEST 2011


Hi Tal,

Just another note, I recently joined the R2HTML team.  I am still
slogging through the Sweave code trying to understand it better, but
in the coming months I will be working on implementing more of the
features in R's RweaveLatex() driver for HTML.  This will not
precisely help a LaTeX to HTML conversion, but will perhaps make a
pure HTML implementation more palatable.

HTML5 is theoretically supported on the latest browsers and has
supports mathml which *should* provide a means of including elegant
formulae in HTML pages.  In my experience, there seems to be
considerable cross-browser/version variability.  Here is an example
that seems to work fairly well for most browsers (thanks to mathjax):
http://www.ats.ucla.edu/stat/r/dae/rreg.htm

Cheers,

Josh

On Thu, Sep 22, 2011 at 4:09 PM, Tal Galili <tal.galili at gmail.com> wrote:
> Hello dear R help members,
> I have found several references on how to do this, my question is if anyone
> is actually using them - and if there are some strong points on what to use,
> and how well it is working out.
>
> My goal is to be able to easily create docs from R, but to be able to share
> it with other researchers (who do not use LaTeX) so they could easily
> copy/paste the tables and edit them for their needs (pdf is not solving this
> for me).
>
> The only reasonable solution I came by so far is to use HTML markup coupled
> with R2HTML (or odfWeave or R2wd).  But nothing that can work with
> LaTeX->HTML (easily)
>
> I have asked a similar question here:
> http://stackoverflow.com/questions/7512897/how-to-turn-a-latex-sweave-file-rnw-into-html
> And also noticed it was asked half a year ago here:
> http://tex.stackexchange.com/questions/4145/workflow-for-converting-latex-into-open-office-ms-word-format
> The general issue of TeX to HTML was discussed also in these places:
> http://tex.stackexchange.com/questions/50/how-can-i-convert-math-less-latex-documents-into-microsoft-word
>
> And obviously the following page offers other good resources to consider:
> http://cran.r-project.org/web/views/ReproducibleResearch.html
>
> p.s: I search the R-help for this topic, but "sweave html" didn't seem to
> yield good results - my apologies if this has been heavily debated before -
> links would be welcomed as well.
>
>
> Tal
>
>
>
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili at gmail.com |  972-52-7275845
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
> www.r-statistics.com (English)
> ----------------------------------------------------------------------------------------------
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-help mailing list