[R] How to turn a LaTeX Sweave file (Rnw) into .HTML/.odf/.docx? (under windows)
Duncan Murdoch
murdoch.duncan at gmail.com
Fri Sep 23 03:32:08 CEST 2011
On 11-09-22 8:38 PM, Abhijit Dasgupta wrote:
> So, I was playing around a bit on my Mac ----
>
> LyX can do Sweave (see http://wiki.lyx.org/LyX/LyxWithRThroughSweave), and will actually output HTML or ODT. However, on a cursory pass, I couldn't get the graphics to translate,
> since the Sweave driver translates the graphics as .ps or .pdf files,
Just a note: Sweave is more flexible nowadays, thanks to some big
improvements by Brian Ripley. It can produce png or jpeg figures if you
need those.
Can't help much with the original problem. R doesn't use .tex when it
needs to produce HTML: it uses .texi (texinfo) or its own .Rd format.
The latter is unlikely to suit general purpose documents, it's just
for help pages. The former is a bit of a PITA to use.
Duncan Murdoch
>
and I'm not sure the HTML translator looks for them or can accept them.
The math actually translates nicely. So there is probably potential here.
>
> Abhijit
>
>
> On Sep 22, 2011, at 7:09 PM, Tal Galili 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.
>
>
> [[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.
More information about the R-help
mailing list