Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6596739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:06:55+00:00 2026-05-25T18:06:55+00:00

I searched for this, but couldn’t find a solution. I understand that one could

  • 0

I searched for this, but couldn’t find a solution.

I understand that one could use the HTML markdown with Sweave, and then output it to HTML using:

library(R2HTML) 
Sweave('temp1.rnw', driver = RweaveHTML)

What I am wondering though, is if there a way to turn the .tex file that is created into an HTML file, but through R.

p.s: I am looking for a solution for windows. I’ve seen that other OS already has their own solutions.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:06:55+00:00Added an answer on May 25, 2026 at 6:06 pm

    TeX to HTML is a non-trivial task, because TeX is so general. As @richiemorrisroe said, mk4ht is available on Windows. So is tth (the other method suggested at the Vanderbilt page you linked to). I don’t think you want to write a TeX parser in R … Can you tell us why you want a pure-R solution? Is it just for the sake of having the solution self-contained?

    I don’t think the installation is really that hard. This should get you most of the way there …

    TTHurl <- "http://hutchinson.belmont.ma.us/tth/tth-noncom/tth_exe.zip"
    SWconvurl <- "http://biostat.mc.vanderbilt.edu/wiki/pub/Main/SweaveConvert/sweave2html"
    download.file(TTHurl,dest="tth.zip")
    unzip("tth.zip") ## creates tth_exe
    download.file(SWconvurl,dest="sweave2html")
    Sys.chmod(c("tth_exe","sweave2html"),mode="0755") ## ???
    

    You will need ImageMagick (binary downloads here) too if you want to convert PDF to PNG on the fly …

    tth is a little less general than mk4ht, which contains a complete (La)TeX parser, but it’s also more lightweight — useful if you want to give this recipe to other users to install and don’t want them to have to download oodles of stuff (unfortunately ImageMagick is pretty big — these days, you can probably concoct a solution where you generate the images in PNG in Sweave in the first place).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I searched for this a lot, but I couldn't find a solution for this
Searched for answer for this but couldn't find anything. The closest I could find
I searched this problem in the site, but I couldn't find a solution. I
I searched google but couldn't find an answer to this rather simple question. I
Apologies if I missed this question already, but I searched and couldn't find it.
I've searched everywhere for this, but I can't seem to find a solution. Perhaps
I searched StackOverflow but couldn't find the answer to this question. Suppose I have
I've searched several threads and bug reports, but couldn't find a solution. I changed
I've searched for this, but couldn't find an answer and for whatever reason I
I have searched for an answer but couldn't find one! I have a simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.