Skip to content

Instantly share code, notes, and snippets.

@danpolanco
Created October 7, 2014 19:08
Show Gist options
  • Save danpolanco/0ce88d0e50c181749cdc to your computer and use it in GitHub Desktop.
Save danpolanco/0ce88d0e50c181749cdc to your computer and use it in GitHub Desktop.
Vim rmarkdown and knitr
I made this short function to process my rmarkdown files:
> function MarkIt()
> :n **/*.Rmd
> :bufdo silent! cd %:p:h && Rscript -e "library(rmarkdown); render('%:p')"
> :redraw!
> endfunction
It still needs testing and so forth, but I didn't want to lose it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment