Test File of R
Markdown
R Notebook
This is an R Markdown file
‘test-rmarkdown.Rmd’ with various output formats, created using
‘RNotebook_Template.Rmd’. When you execute or run a code within the
notebook, the results appear beneath the code.
Try executing this chunk by clicking the Run button, a
triangle pointing right, within the chunk or by placing your cursor
inside it and pressing Ctrl+Shift+Enter (Win) or
Cmd+Shift+Enter (Mac).
Test Code Chunk
(1)
head(cars)
Test Code Chunk
(2)
plot(cars)
Test Code Chunk
(3)
knitr::kable(iris[1:6, ])
Test Code Chunk
(4)
ggplot(iris, aes(x = Petal.Length, y = Petal.Width, col = Species)) +
geom_point()
New Code Chunk
Add a new chunk by clicking the Insert Chunk button on the
toolbar or by pressing Ctrl+Option+I (Win) or
Cmd+Option+I (Mac).
When you save the notebook, an HTML file containing the code and
output will be saved alongside it (click the Preview button or
press Ctrl+Shift+K (Win) or Cmd+Shift+K (Mac) to
preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the
editor. Consequently, unlike Knit, Preview does not
run any R code chunks. Instead, the output of the chunk when it was last
run in the editor is displayed.
Note
References
- Posit Primers: Report
Reproducibly
- Markdown Quick Reference: Top Menu Bar > Help > Markdown Quick
Reference
- Cheat Sheet (Top Menu Bar: Help > Cheat Sheets): RMarkdown Cheat
Sheet, RMarkdown Reference Guide
- Books:
- Post error messages to a web search engine.
LS0tCnRpdGxlOiAiVGVzdGluZyBSIE1hcmtkb3duIEZvcm1hdHMiCmF1dGhvcjogIkRTLVNMIgpkYXRlOiAiYHIgU3lzLkRhdGUoKWAiCm91dHB1dDoKICBodG1sX25vdGVib29rOgogICAgbnVtYmVyX3NlY3Rpb25zOiB5ZXMKICBiZWFtZXJfcHJlc2VudGF0aW9uOiBkZWZhdWx0CiAgcGRmX2RvY3VtZW50OiAKICAgIG51bWJlcl9zZWN0aW9uczogeWVzCiAgaHRtbF9kb2N1bWVudDoKICAgIGRmX3ByaW50OiBwYWdlZAogICAgbnVtYmVyX3NlY3Rpb25zOiB5ZXMKICB3b3JkX2RvY3VtZW50Oi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ZXJlbmNlOiBUb3AgTWVudSBCYXIgXD4gSGVscCBcPiBNYXJrZG93biBRdWljayBSZWZlcmVuY2UKKiBDaGVhdCBTaGVldCAoVG9wIE1lbnUgQmFyOiBIZWxwIFw+IENoZWF0IFNoZWV0cyk6IFJNYXJrZG93biBDaGVhdCBTaGVldCwgUk1hcmtkb3duIFJlZmVyZW5jZSBHdWlkZQoqIEJvb2tzOgogIC0gW1IgTWFya2Rvd246IFRoZSBEZWZpbml0aXZlIEd1aWRlXShodHRwczovL2Jvb2tkb3duLm9yZy95aWh1aS9ybWFya2Rvd24vKQogIC0gW1IgTWFya2Rvd24gQ29va2Jvb2tdKGh0dHBzOi8vYm9va2Rvd24ub3JnL3lpaHVpL3JtYXJrZG93bi1jb29rYm9vay8pCiogUG9zdCBlcnJvciBtZXNzYWdlcyB0byBhIHdlYiBzZWFyY2ggZW5naW5lLgogIAoK
2.1 Comments on Presentation Formats
---
is page break for presentation formats.