rstudio/rmarkdown

Rrmarkdown.rstudio.com

Dynamic Documents for R

rr-packagermarkdownpandocmarkdownliterate-programming
スター成長
スター
3.1k
フォーク
991
週間成長
+4
Issue
248
1k2k3k
2014年1月2018年3月2022年6月2026年9月
README

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 pak 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 Posit 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.

関連リポジトリ
microsoft/ML-For-Beginners

12 weeks, 26 lessons, 52 quizzes, classic Machine Learning for all

Jupyter NotebooktutorialMIT Licensemldata-science
90.3k22.2k
apache/spark

Apache Spark - A unified analytics engine for large-scale data processing

ScalaApache License 2.0pythonscala
spark.apache.org
44k29.4k
facebook/prophet

Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.

PythonPyPIlibraryMIT Licenseforecastingr
facebook.github.io/prophet
20.4k4.6k
lightgbm-org/LightGBM

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

C++MIT Licensegbdtgbm
lightgbm.readthedocs.io/en/latest/
18.8k4.1k
FavioVazquez/ds-cheatsheets

List of Data Science Cheatsheets to rule the world

tutorialMIT Licensedatasciencepython
16.3k4k
kanaka/mal

mal - Make a Lisp

AssemblyOthermaldocker
10.7k2.7k
HugoBlox/kit

🧱 Describe your site, AI builds it, you own it as Markdown. Snap together Tailwind blocks like Lego — landing pages, blogs, portfolios, docs & more. No AI slop. Free to deploy anywhere 👇

HTMLlibraryMIT Licensehugoacademic
hugoblox.com
9.7k3k
catboost/catboost

A fast, scalable, high performance Gradient Boosting on Decision Trees library, used for ranking, classification, regression and other machine learning tasks for Python, R, Java, C++. Supports computation on CPU and GPU.

C++tutorialApache License 2.0machine-learningdecision-trees
catboost.ai
9.1k1.3k
h2oai/h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.

Jupyter NotebookApache License 2.0h2omachine-learning
h2o.ai
7.5k2k
cxli233/FriendsDontLetFriends

Friends don't let friends make certain types of data visualization - What are they and why are they bad.

RtutorialMIT Licensedata-visualizationr
7.1k286
tidyverse/ggplot2

An implementation of the Grammar of Graphics in R

RlibraryOtherrvisualisation
ggplot2.tidyverse.org
7k2.1k
qinwf/awesome-R

A curated list of awesome R packages, frameworks and software.

Rawesomerdata-science
6.5k1.5k