bookdown
Authoring Books and Technical Documents with R Markdown
...Multiple choices of output formats: PDF, LaTeX, HTML, EPUB, and Word. Possibility of including dynamic graphics and interactive applications (HTML widgets and Shiny apps) Support for languages other than R, including C/C++, Python, and SQL, etc. LaTeX equations, theorems, and proofs work for all output formats. Can be published to GitHub, bookdown.org, and any web servers. Integrated with the RStudio IDE. The easiest way to start a new Bookdown project is from within RStudio IDE. Go to File, New Project, New Directory, Book project using bookdown.