To save the knitr Rmd files as PDF on windows platform
6. Install the miktex:
8. knit("MyFile.Rmd")
9. markdownToHTML('MyFile.md', 'MyFile.html', options=c("use_xhml"))
10. system("pandoc -s MyFile.html -o MyFile.pdf")
- install.packages("knitr")
- install.packages("markdown")
- require(knitr)
- require(markdown)
- Create your markdown file.
7. Install the pandoc:
9. markdownToHTML('MyFile.md', 'MyFile.html', options=c("use_xhml"))
10. system("pandoc -s MyFile.html -o MyFile.pdf")



No comments:
Post a Comment