Created
November 30, 2012 21:28
-
-
Save 1beb/4178775 to your computer and use it in GitHub Desktop.
Set options on RStudio to only print fragments, remove CSS and add table of contents to output file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| options(rstudio.markdownToHTML = | |
| function(inputFile, outputFile) { | |
| require(markdown) | |
| markdownToHTML(inputFile,"tmp.html",fragment.only=TRUE) | |
| system(paste("pandoc", "-s -S --toc","tmp.html", "-o", outputFile)) | |
| } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment