Created
February 21, 2014 03:02
-
-
Save kohske/9128031 to your computer and use it in GitHub Desktop.
emacsでknit2html
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
(defun rmarkdown-to-html () | |
"Run knitr::knit2html on the current file" | |
(interactive) | |
(shell-command | |
(format "Rscript -e \"knitr::knit2html('%s')\"" | |
(shell-quote-argument (buffer-file-name))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment