r-markdown
Automatically number sections in RMarkdown
Add the option number_sections: true to your YAML header: — title: “My Report” output: html_document: number_sections: true — # Main Section ## 2nd Level ### 3rd Level And voilá, your sections are numbered:
Remove Hashes in R Output from R Markdown and Knitr
You can include in your chunk options something like comment=NA # to remove all hashes or comment=”%” # to use a different character More help on knitr available from here: http://yihui.name/knitr/options If you are using R Markdown as you mentioned, your chunk could look like this: “`{r comment=NA} summary(cars) “` If you want to change … Read more
Adjust the output width of R Markdown HTML output
Add this at the start of your document: “`{r set-options, echo=FALSE, cache=FALSE} options(width = SOME-REALLY-BIG-VALUE) “` Obviously, replace SOME-REALLY-BIG-VALUE with a number. But do you really want to do all that horizontal scrolling? Your output is probably being wrapped somewhere around 80 characters or so.
How to convert R Markdown to PDF?
Updated Answer (10 Feb 2013) rmarkdown package: There is now an rmarkdown package available on github that interfaces with Pandoc. It includes a render function. The documentation makes it pretty clear how to convert rmarkdown to pdf among a range of other formats. This includes including output formats in the rmarkdown file or running supplying … Read more
Comment out text in R Markdown (Rmd file)
I think you should be able to use regular html comments: <!– regular html comment –> Does this work for you?