Created
December 12, 2012 00:08
-
-
Save rs77/4263616 to your computer and use it in GitHub Desktop.
Global RStudio IDE .Rprofile file that enables Pandoc to output HTML with LaTeX images using Google Charts API. The resulting output allows for pasting into learning management systems that have rich-text editors. More details on the workflow here: http://www.webed.com.au/34/my-workflow-for-teaching-mathematics-online/
This file contains 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) { | |
system(paste("pandoc", shQuote(inputFile), "-s --webtex=http://chart.apis.google.com/chart?cht=tx\\&chf=bg,s,FFFFFF00\\&chl= --self-contained -o", shQuote(outputFile))) | |
} | |
) | |
print("Global (or Local) .Rprofile file has been loaded.") // change to Local if .Rprofile is stored in project | |
// there needs to be a blank file here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment