• Stars
    star
    2,708
  • Rank 15,318 (Top 0.4 %)
  • Language
    R
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dynamic Documents for R

rmarkdown

R-CMD-check CRAN release Codecov test coverage

The rmarkdown package helps you create dynamic analysis documents that combine code, rendered output (such as figures), and prose. You bring your data, code, and ideas, and R Markdown renders your 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 including HTML documents, PDFs, Word files, slideshows, and more, allowing you to focus on the content while R Markdown takes care of your presentation.

Books

R Markdown: The Definitive Guide R Markdown Cookbook

See more about them in Get Started.

Installation

The easiest way to install the rmarkdown package is from within the RStudio IDE, but you don't need to explicitly install it or load it, as RStudio automatically does both when needed. A recent version of Pandoc (>= 1.12.3) is also required; RStudio also automatically includes this too so you do not need to download Pandoc if you plan to use rmarkdown from the RStudio IDE.

If you want to use the rmarkdown package outside of RStudio, you can install 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 from GitHub via the remotes package:

# install.packages("pak")
pak::pak('rstudio/rmarkdown')

If not using the RStudio IDE, you'll need to install a recent version of Pandoc (>= 1.12.3); see the Pandoc installation instructions for help.

Usage

The easiest way to make a new R Markdown document is from within RStudio. Go to File > New File > R Markdown. From the new file wizard, you may:

  • Provide a document title (optional but recommended),
  • Provide an author name (optional but recommended),
  • Select a default output format- HTML is the recommended format for authoring, and you can switch the output format anytime (required),
  • Click OK (required).

Once inside your new .Rmd file, you should see some boilerplate text that includes code chunks. Use the "Knit" button in the RStudio IDE to render the file and preview the output with a single click or use the keyboard shortcut Cmd/Ctrl + Shift + K.

You can also delete all the text below the YAML frontmatter and fill in your own .Rmd by:

  • Adding code chunks (keyboard shortcut: Ctrl + Alt + I; OS X: Cmd + Option + I),
  • Writing prose with Markdown formatting, and
  • Running each code chunk interactively by clicking the The run button icon within RStudio.

You can also click "Knit to HTML" again to render the full document with all code chunks. For more help getting started in R Markdown, please see the R Markdown website or use the "Get Started" links at the top of this page.

Getting help

There are two main places to get help:

  1. The RStudio community is a friendly place to ask any questions about rmarkdown and the R Markdown family of packages.

  2. Stack Overflow is a great source of answers to common rmarkdown questions. It is also a great place to get help, once you have created a reproducible example that illustrates your problem.

Code of Conduct

Please note that the rmarkdown project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

More Repositories

1

shiny

Easy interactive web applications with R
R
5,139
star
2

cheatsheets

Posit Cheat Sheets - Can also be found at https://posit.co/resources/cheatsheets/.
TeX
5,081
star
3

rstudio

RStudio is an integrated development environment (IDE) for R
Java
4,360
star
4

bookdown

Authoring Books and Technical Documents with R Markdown
JavaScript
3,500
star
5

shiny-examples

JavaScript
1,882
star
6

gt

Easily generate information-rich, publication-quality tables from R
R
1,792
star
7

blogdown

Create Blogs and Websites with R Markdown
R
1,669
star
8

reticulate

R Interface to Python
R
1,590
star
9

webinars

Code and slides for RStudio webinars
HTML
1,510
star
10

rticles

LaTeX Journal Article Templates for R Markdown
TeX
1,382
star
11

plumber

Turn your R code into a web API.
R
1,347
star
12

tensorflow

TensorFlow for R
R
1,311
star
13

renv

renv: Project environments for R.
R
921
star
14

shinydashboard

Shiny Dashboarding framework
CSS
852
star
15

pagedown

Paginate the HTML Output of R Markdown with CSS for Print
R
842
star
16

keras

R Interface to Keras
R
802
star
17

leaflet

R Interface to Leaflet Maps
JavaScript
775
star
18

pointblank

Data quality assessment and metadata reporting for data frames and database tables
R
766
star
19

flexdashboard

Easy interactive dashboards for R
JavaScript
761
star
20

rmarkdown-book

R Markdown: The Definitive Guide (published by Chapman & Hall/CRC in July 2018)
RMarkdown
729
star
21

ggvis

Interactive grammar of graphics for R
R
709
star
22

rstudio-conf

Materials for rstudio::conf
HTML
691
star
23

shiny-server

Host Shiny applications over the web.
JavaScript
686
star
24

learnr

Interactive Tutorials with R Markdown
R
670
star
25

RStartHere

A guide to some of the most useful R Packages that we know about
R
656
star
26

py-shiny

Shiny for Python
Python
627
star
27

DT

R Interface to the jQuery Plug-in DataTables
JavaScript
563
star
28

rmarkdown-cookbook

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
RMarkdown
545
star
29

blastula

Easily send great-looking HTML email messages from R
R
509
star
30

r2d3

R Interface to D3 Visualizations
R
506
star
31

bookdown-demo

A minimal book example using bookdown
CSS
472
star
32

distill

Distill for R Markdown
HTML
417
star
33

hex-stickers

RStudio hex stickers
R
414
star
34

packrat

Packrat is a dependency management system for R
R
394
star
35

bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
SCSS
381
star
36

tufte

Tufte Styles for R Markdown Documents
R
377
star
37

dygraphs

R interface to dygraphs
JavaScript
358
star
38

revealjs

R Markdown Format for reveal.js Presentations
JavaScript
316
star
39

pins-r

Pin, Discover and Share Resources
R
292
star
40

profvis

Visualize R profiling data
JavaScript
285
star
41

fontawesome

Easily insert FontAwesome icons into R Markdown docs and Shiny apps
R
284
star
42

crosstalk

Inter-htmlwidget communication for R (with and without Shiny)
JavaScript
277
star
43

config

config package for R
R
240
star
44

thematic

Theme ggplot2, lattice, and base graphics based on a few simple settings.
R
235
star
45

Intro

Course materials for "Introduction to Data Science with R", a video course by RStudio and O'Reilly Media
R
234
star
46

pool

Object Pooling in R
R
232
star
47

shinytest

Automated testing for shiny apps
JavaScript
229
star
48

httpuv

HTTP and WebSocket server package for R
C
217
star
49

nomnoml

Sassy 'UML' Diagrams for R
JavaScript
212
star
50

tinytex-releases

Windows/macOS/Linux binaries and installation methods of TinyTeX
PowerShell
211
star
51

shinymeta

Record and expose Shiny app logic using metaprogramming
R
210
star
52

htmltools

Tools for HTML generation and output
R
201
star
53

shinyuieditor

A GUI for laying out a Shiny application that generates clean and human-readable UI code
JavaScript
186
star
54

promises

A promise library for R
R
183
star
55

vetiver-r

Version, share, deploy, and monitor models
R
167
star
56

gradethis

Tools for teachers to use with learnr
R
163
star
57

rstudioapi

Safely access RStudio's API (when available)
R
161
star
58

concept-maps

Concept maps for all things data science
HTML
156
star
59

master-the-tidyverse

Course contents for Master the Tidyverse
156
star
60

shinythemes

Themes for Shiny
R
152
star
61

ShinyDeveloperConference

Materials collected from the First Shiny Developer Conference Palo Alto, CA January 30-31 2016
HTML
150
star
62

chromote

Chrome Remote Interface for R
R
141
star
63

shiny-gallery

Code and other documentation for apps in the Shiny Gallery ✨
HTML
136
star
64

sortable

R htmlwidget for Sortable.js
R
124
star
65

rsconnect

Publish Shiny Applications, RMarkdown Documents, Jupyter Notebooks, Plumber APIs, and more
R
120
star
66

redx

dynamic nginx configuration
Lua
118
star
67

reactlog

Shiny Reactivity Visualizer
JavaScript
118
star
68

bigdataclass

Two-day workshop that covers how to use R to interact databases and Spark
R
112
star
69

shinyapps

Deploy Shiny applications to ShinyApps
110
star
70

shinyloadtest

Tools for load testing Shiny applications
HTML
108
star
71

shinyvalidate

Input validation package for the Shiny web framework
JavaScript
108
star
72

webshot2

Take screenshots of web pages from R
R
106
star
73

sass

Sass compiler package for R
C++
103
star
74

miniUI

R
102
star
75

r-docker

Docker images for R
Dockerfile
100
star
76

r-system-requirements

System requirements for R packages
Shell
100
star
77

shinytest2

R
96
star
78

keras-customer-churn

Customer Churn Shiny Application
R
96
star
79

r-builds

an opinionated environment for compiling R
Shell
88
star
80

addinexamples

An R package showcasing how RStudio addins can be registered and used.
R
84
star
81

r-manuals

A re-styled version of the R manuals
R
78
star
82

shinyapps-package-dependencies

Collection of bash scripts that install R package system dependencies
R
74
star
83

markdown

The first generation of Markdown rendering for R (born in 2012). Originally based on the C library sundown. Now based on commonmark. Note that this package is markdown, not *rmarkdown*.
R
72
star
84

R-Websockets

HTML 5 Websockets implementation for R
R
68
star
85

webdriver

WebDriver client in R
R
68
star
86

beyond-dashboard-fatigue

Materials for the RStudio webinar 'Beyond Dashboard Fatigue'
R
66
star
87

cloudml

R interface to Google Cloud Machine Learning Engine
R
65
star
88

rstudio-conf-2022-program

rstudio::conf(2022, "program")
R
62
star
89

shinylive

Run Shiny on Python (compiled to wasm) in the browser
TypeScript
61
star
90

bookdown.org

Source documents to generate the bookdown.org website
R
59
star
91

rstudio-docker-products

Docker images for RStudio Professional Products
Just
58
star
92

education.rstudio.com

CSS
57
star
93

tfestimators

R interface to TensorFlow Estimators
R
57
star
94

sparkDemos

HTML
54
star
95

tfprobability

R interface to TensorFlow Probability
R
54
star
96

shiny-incubator

Examples and ideas that don't belong in the core Shiny package and aren't officially supported.
JavaScript
53
star
97

swagger

Swagger is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
R
52
star
98

vetiver-python

Version, share, deploy, and monitor models.
Python
51
star
99

connections

https://rstudio.github.io/connections/
R
51
star
100

leaflet.mapboxgl

Extends the R Leaflet package with a Mapbox GL JS plugin to allow easy drawing of vector tile layers.
R
49
star