
Thermarkdown package helps you create dynamicanalysis documents that combine code, rendered output (such as figures),and prose. You bring your data, code, and ideas, and R Markdown rendersyour content into a polished document that can be used to:
Do data science interactively within the RStudio IDE,
Reproduce your analyses,
Collaborate and share code with others, and
Communicate your results with others.
R Markdown documents can be rendered to many output formats includingHTML documents, PDFs, Word files, slideshows, and more, allowing you tofocus on the content while R Markdown takes care of yourpresentation.
See more about them inGetStarted.
The easiest way to install thermarkdown package isfrom within theRStudio IDE, butyou don’t need to explicitly install it or load it, as RStudioautomatically does both when needed. A recent version of Pandoc (>=1.12.3) is also required; RStudio also automatically includes this tooso you do not need to download Pandoc if you plan to use rmarkdown fromthe RStudio IDE.
If you want to use the rmarkdown package outside of RStudio, you caninstall the package from CRAN as follows:
install.packages("rmarkdown")If you want to use the development version of the rmarkdown package(either with or without RStudio), you can install the package fromGitHub via thepakpackage:
# install.packages("pak")pak::pak('rstudio/rmarkdown')If not using the RStudio IDE, you’ll need to install a recent versionof Pandoc (>= 1.12.3); see thePandoc installationinstructions for help.
The easiest way to make a new R Markdown document is from withinRStudio. Go toFile > New File > R Markdown. From the newfile wizard, you may:
Once inside your new.Rmd file, you should see someboilerplate text that includes code chunks. Use the “Knit” button in theRStudio IDE to render the file and preview the output with a singleclick or use the keyboard shortcut Cmd/Ctrl + Shift + K.
You can also delete all the text below the YAML frontmatter and fillin your own.Rmd by:
Ctrl + Alt + I;OS X:Cmd + Option + I),
icon within RStudio.You can also click “Knit to HTML” again to render the full documentwith all code chunks. For more help getting started in R Markdown,please see theRMarkdown website or use the“Get Started” links atthe top of this page.
There are two main places to get help:
ThePositcommunity is a friendly place to ask any questions about rmarkdownand the R Markdown family of packages.
StackOverflow is a great source of answers to common rmarkdown questions.It is also a great place to get help, once you have created areproducible example that illustrates your problem.
Please note that thermarkdown project is releasedwith aContributorCode of Conduct. By contributing to this project, you agree to abideby its terms.