Skip to content

Instantly share code, notes, and snippets.

@kohske
Created February 21, 2014 03:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohske/9128031 to your computer and use it in GitHub Desktop.
Save kohske/9128031 to your computer and use it in GitHub Desktop.
emacsでknit2html
(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