Skip to content

Instantly share code, notes, and snippets.

@rmflight
Created September 18, 2012 20:06
Show Gist options
  • Save rmflight/3745512 to your computer and use it in GitHub Desktop.
Save rmflight/3745512 to your computer and use it in GitHub Desktop.
change md rendering function in RStudio
options(rstudio.markdownToHTML =
function(inputFile, outputFile) {
require(markdown)
htmlOptions <- markdownHTMLOptions(defaults=TRUE)
htmlOptions <- htmlOptions[htmlOptions != "hard_wrap"]
markdownToHTML(inputFile, outputFile, options = htmlOptions)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment