![]() To give you an example, this is Markdown text: We can make text **bold**, *italics*, or `look like code.` If you have ever edited a wikipedia article, you have used Markdown. It consists of plain text with a few simple directives to mark sections, turn text bold or italics, or insert quotes. What does the word Markdown stand for? Markdown is a minimalist approach to writing strutured documents. To give you an example, I started writing a tutorial for R’s ggplot2 library this weekend, and the original R Markdown file as well as the HTML output generated from that file are available here. In the case of R, this means that you can write a document that contains R code, the output that is generated when the R code is run (including graphs), and prose describing the R code and its output. Literate programming, invented by Donald Knuth, allows users to write both a program and a document describing the program, at the same time. R Markdown provides a literate programming platform for the R language. So if you use R, and you’ve never used R Markdown, give it a try. I wager that anybody who has RStudio installed can create a useful document in 30 minutes or less. R Markdown rocks! It’s hands down the easiest and most elegant method to creating rich documents that contain data analysis, figures, mathematical formulas, and text. I had been aware of its existence for a while, but I had never bothered to check it out. This weekend, I finally spent some time learning R Markdown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |