Join Charlie Joey Hadley for an in-depth discussion in this video What is R Markdown?, part of Creating Reports and Presentations with R Markdown and RStudio.
- [Instructor] To properly wrap our head around what R Markdown is, it's best to think of it as thee things simultaneously. R Markdown is an R package available from CRAN that you need to install to use. And you install it in the same way as you install any R package, with the function install.packages. The R Markdown package is developed by the folks at RStudio. Therefore, the RStudio application is designed as the document editor for R Markdown. R Markdown files have the extension .Rmd. It's not impossible to use R Markdown without RStudio, but RStudio makes it a real delight to use. And thirdly, the R Markdown package is a collection of many different tools that work together to convert your R Markdown files, that's the files with the .Rmd extension, into HTML, PDF, Microsoft Word documents, and many other file types. There are therefore two components of R Markdown: .Rmd file, which contains all of our content, and the R Markdown package that passes the .Rmd file and generates to specify output files. .Rmd files are plain text files that contain all of the information necessary for RStudio to generate our output files using the R Markdown and knitR package. For reference purposes, this is a screenshot of the built in RStudio template .Rmd file. There are three distinct parts to the document, and in fact, each is written in a different language. The file header tells the R Markdown package what type of file to create. In this case, an HTML document. And it's worth noting that this header is written in YAML. The text in the document is written in Pandoc flavored Markdown. Any R code that we want to include or evaluate in a document is contained within code chunks. These are delimited by pairs of three back ticks. Note that these back ticks are actually part of the Pandoc Markdown syntax. This is the beauty of R Markdown. It allows us to combine text, images, code, and output together into a huge variety of different output formats to create rich reports and presentations.
Author
Released
3/14/2019- What is R Markdown?
- Writing PDF and HTML reports
- Writing HTML presentations
- Setting up LaTeX and BibTeX
- Including R code in R Markdown documents
- Formatting text
- Including code from script files
- Creating slides
- Using ggplot2 charts
- Inserting images and tables
- Creating captions with bookdown
- Customizing styles
- Overriding markdown
- Using htmlwidgets
- Publishing R Markdown HTML
Skill Level Intermediate
Duration
Views
Related Courses
-
Learning the R Tidyverse
with Charlie Joey Hadley3h 50m Intermediate -
Data Visualization in R with ggplot2
with Mike Chapple2h 27m Intermediate
-
Introduction
-
What you should know1m 41s
-
1. What Can You Build with R Markdown?
-
What is Markdown?1m 56s
-
What is R Markdown?2m 24s
-
-
2. Setting Up LaTeX for R Markdown PDF Outputs
-
What are LaTeX and BibTeX?1m 39s
-
-
3. Understanding the Basics of R Markdown Documents
-
Installing R Markdown1m 41s
-
-
4. Preventing Gotchas
-
5. Creating Slides in R Markdown
-
6. Using ggplot2 Charts in R Markdown
-
Globally set figure size4m 13s
-
7. Inserting Images into R Markdown Output
-
8. Inserting Tables into R Markdown Output
-
Markdown tables in .Rmd2m 39s
-
Interactive tables with DT2m 36s
-
9. Captions with bookdown
-
Captions with bookdown4m 14s
-
10. Customizing Styles in R Markdown
-
11. Overriding Markdown in .Rmd
-
Run LaTeX in PDF documents2m 21s
-
Run HTML in R Markdown2m 9s
-
12. htmlwidgets and R Markdown
-
htmlwidgets and R Markdown3m 10s
-
-
13. Publishing R Markdown HTML Content to RPubs.com
-
Conclusion
-
Next steps56s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: What is R Markdown?