Answer by Jose Figueroa for Keeping R Markdown syntax highlighting when printing
One solution that I also found is to knit to HTML, preview the html file in the browser, and then highlight everything and paste it into a MS Word document. From there you can export to PDF or print....
View ArticleAnswer by Thell for Keeping R Markdown syntax highlighting when printing
After doing your 'Knit' to your original example.Rmd you will have an example.md in your working path, then use pandoc...# for pdf (you need to have latex installed)system( "pandoc example.md -o...
View ArticleKeeping R Markdown syntax highlighting when printing
I'm afraid the response will be: "Markdown is meant to be simple and it doesn't do that", but it (almost) never hurts to ask. When writing an R Markdown document I can view the HTML file in a browser...
View Article
More Pages to Explore .....