Debian Codegraph @

inst/doc/rmarkdown.html

raw symbols SCIP
1 <!DOCTYPE html>
2
3 <html>
4
5 <head>
6
7 <meta charset="utf-8" />
8 <meta name="generator" content="pandoc" />
9 <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
10
11 <meta name="viewport" content="width=device-width, initial-scale=1" />
12
13
14
15 <title>Learn R Markdown</title>
16
17 <script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
18 // be compatible with the behavior of Pandoc < 2.8).
19 document.addEventListener('DOMContentLoaded', function(e) {
20 var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
21 var i, h, a;
22 for (i = 0; i < hs.length; i++) {
23 h = hs[i];
24 if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
25 a = h.attributes;
26 while (a.length > 0) h.removeAttribute(a[0].name);
27 }
28 });
29 </script>
30
31 <style type="text/css">
32 code{white-space: pre-wrap;}
33 span.smallcaps{font-variant: small-caps;}
34 span.underline{text-decoration: underline;}
35 div.column{display: inline-block; vertical-align: top; width: 50%;}
36 div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
37 ul.task-list{list-style: none;}
38 </style>
39
40
41
42
43
44
45
46 <style type="text/css">body {
47 background-color: #fff;
48 margin: 1em auto;
49 max-width: 700px;
50 overflow: visible;
51 padding-left: 2em;
52 padding-right: 2em;
53 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
54 font-size: 14px;
55 line-height: 1.35;
56 }
57 #TOC {
58 clear: both;
59 margin: 0 0 10px 10px;
60 padding: 4px;
61 width: 400px;
62 border: 1px solid #CCCCCC;
63 border-radius: 5px;
64 background-color: #f6f6f6;
65 font-size: 13px;
66 line-height: 1.3;
67 }
68 #TOC .toctitle {
69 font-weight: bold;
70 font-size: 15px;
71 margin-left: 5px;
72 }
73 #TOC ul {
74 padding-left: 40px;
75 margin-left: -1.5em;
76 margin-top: 5px;
77 margin-bottom: 5px;
78 }
79 #TOC ul ul {
80 margin-left: -2em;
81 }
82 #TOC li {
83 line-height: 16px;
84 }
85 table {
86 margin: 1em auto;
87 border-width: 1px;
88 border-color: #DDDDDD;
89 border-style: outset;
90 border-collapse: collapse;
91 }
92 table th {
93 border-width: 2px;
94 padding: 5px;
95 border-style: inset;
96 }
97 table td {
98 border-width: 1px;
99 border-style: inset;
100 line-height: 18px;
101 padding: 5px 5px;
102 }
103 table, table th, table td {
104 border-left-style: none;
105 border-right-style: none;
106 }
107 table thead, table tr.even {
108 background-color: #f7f7f7;
109 }
110 p {
111 margin: 0.5em 0;
112 }
113 blockquote {
114 background-color: #f6f6f6;
115 padding: 0.25em 0.75em;
116 }
117 hr {
118 border-style: solid;
119 border: none;
120 border-top: 1px solid #777;
121 margin: 28px 0;
122 }
123 dl {
124 margin-left: 0;
125 }
126 dl dd {
127 margin-bottom: 13px;
128 margin-left: 13px;
129 }
130 dl dt {
131 font-weight: bold;
132 }
133 ul {
134 margin-top: 0;
135 }
136 ul li {
137 list-style: circle outside;
138 }
139 ul ul {
140 margin-bottom: 0;
141 }
142 pre, code {
143 background-color: #f7f7f7;
144 border-radius: 3px;
145 color: #333;
146 white-space: pre-wrap;
147 }
148 pre {
149 border-radius: 3px;
150 margin: 5px 0px 10px 0px;
151 padding: 10px;
152 }
153 pre:not([class]) {
154 background-color: #f7f7f7;
155 }
156 code {
157 font-family: Consolas, Monaco, 'Courier New', monospace;
158 font-size: 85%;
159 }
160 p > code, li > code {
161 padding: 2px 0px;
162 }
163 div.figure {
164 text-align: center;
165 }
166 img {
167 background-color: #FFFFFF;
168 padding: 2px;
169 border: 1px solid #DDDDDD;
170 border-radius: 3px;
171 border: 1px solid #CCCCCC;
172 margin: 0 5px;
173 }
174 h1 {
175 margin-top: 0;
176 font-size: 35px;
177 line-height: 40px;
178 }
179 h2 {
180 border-bottom: 4px solid #f7f7f7;
181 padding-top: 10px;
182 padding-bottom: 2px;
183 font-size: 145%;
184 }
185 h3 {
186 border-bottom: 2px solid #f7f7f7;
187 padding-top: 10px;
188 font-size: 120%;
189 }
190 h4 {
191 border-bottom: 1px solid #f7f7f7;
192 margin-left: 8px;
193 font-size: 105%;
194 }
195 h5, h6 {
196 border-bottom: 1px solid #ccc;
197 font-size: 105%;
198 }
199 a {
200 color: #0033dd;
201 text-decoration: none;
202 }
203 a:hover {
204 color: #6666ff; }
205 a:visited {
206 color: #800080; }
207 a:visited:hover {
208 color: #BB00BB; }
209 a[href^="http:"] {
210 text-decoration: underline; }
211 a[href^="https:"] {
212 text-decoration: underline; }
213
214 code > span.kw { color: #555; font-weight: bold; }
215 code > span.dt { color: #902000; }
216 code > span.dv { color: #40a070; }
217 code > span.bn { color: #d14; }
218 code > span.fl { color: #d14; }
219 code > span.ch { color: #d14; }
220 code > span.st { color: #d14; }
221 code > span.co { color: #888888; font-style: italic; }
222 code > span.ot { color: #007020; }
223 code > span.al { color: #ff0000; font-weight: bold; }
224 code > span.fu { color: #900; font-weight: bold; }
225 code > span.er { color: #a61717; background-color: #e3d2d2; }
226 </style>
227
228
229
230
231 </head>
232
233 <body>
234
235
236
237
238 <h1 class="title toc-ignore">Learn R Markdown</h1>
239
240
241
242 <div id="overview" class="section level1">
243 <h1>Overview</h1>
244 <p><a href="https://r4ds.had.co.nz/"><img src="https://r4ds.had.co.nz/cover.png" alt="R for Data Science" data-external="1" width="250" style="padding: 0 15px; float: right;" /></a></p>
245 <p>If you are new to using R Markdown, we encourage you to start with a
246 systematic overview, rather than diving right in to reading
247 documentation pages. The best place to start is the <a href="https://r4ds.had.co.nz/communicate-intro.html">“Communication”
248 section</a> in the book “R for Data Science” (R4DS for short), an
249 O’Reilly book written by Hadley Wickham and Garrett Grolemund.</p>
250 <p>Here are the chapters that cover R Markdown, as summarized by Hadley
251 and Garrett:</p>
252 <ul>
253 <li><p>In <a href="https://r4ds.had.co.nz/r-markdown.html">R
254 Markdown</a>, you will learn about R Markdown, a tool for integrating
255 prose, code, and results. You can use R Markdown in notebook mode for
256 analyst-to-analyst communication, and in report mode for
257 analyst-to-decision-maker communication. Thanks to the power of R
258 Markdown formats, you can even use the same document for both
259 purposes.</p></li>
260 <li><p>In <a href="https://r4ds.had.co.nz/r-markdown-formats.html">R
261 Markdown formats</a>, you’ll learn a little about the many other
262 varieties of outputs you can produce using R Markdown, including
263 dashboards, websites, and books.</p></li>
264 <li><p>We’ll finish up with <a href="https://r4ds.had.co.nz/r-markdown-workflow.html">R Markdown
265 workflow</a>, where you’ll learn about the “analysis notebook” and how
266 to systematically record your successes and failures so that you can
267 learn from them.</p></li>
268 </ul>
269 <p><br> <br></p>
270 <p><a href="https://rmarkdown.rstudio.com/lesson-1.html"><img src="https://rmarkdown.rstudio.com/lesson-images/params-1-hawaii.png" alt="R Markdown tutorials" data-external="1" width="450" style="padding: 0 15px; float: right;" /></a></p>
271 </div>
272 <div id="tutorials" class="section level1">
273 <h1>Tutorials</h1>
274 <p>The <a href="https://rmarkdown.rstudio.com/lesson-1.html">R Markdown
275 website</a> offers a series of tutorials you can follow to see what is
276 possible with R Markdown.</p>
277 <p>These tutorials offer accompanying <a href="https://rstudio.cloud/">RStudio Cloud</a> lessons you can use
278 right away in your browser.</p>
279 <p>You can also access links to all these tutorials in the <strong>“Get
280 Started”</strong> section from the top of this page.</p>
281 <p><br> <br></p>
282 </div>
283 <div id="user-guide" class="section level1">
284 <h1>User Guide</h1>
285 <p>Written by the authors of the <strong>rmarkdown</strong> package, <a href="https://yihui.org/rmarkdown/">R Markdown: The Definitive Guide</a>
286 provides a comprehensive user guide to the complete R Markdown ecosystem
287 for authoring documents. The book is published by Chapman &amp;
288 Hall/CRC, and you can read it online for free.</p>
289 <p><a href="https://yihui.org/rmarkdown/"><img src="https://yihui.org/rmarkdown/images/cover.png" alt="R Markdown: The Definitive Guide" data-external="1" width="250" style="padding: 0 15px; float: right;" /></a></p>
290 <p>The book is structured into four parts:</p>
291 <ul>
292 <li><p><a href="https://yihui.org/rmarkdown/installation.html">Part
293 I</a> introduces how to install the relevant packages, and provides an
294 overview of R Markdown, including the possible output formats, the
295 Markdown syntax, the R code chunk syntax, and how to use other languages
296 in R Markdown.</p></li>
297 <li><p><a href="https://yihui.org/rmarkdown/documents.html">Part II</a>
298 is the detailed documentation of built-in output formats in the
299 rmarkdown package, including document formats and presentation formats.
300 These output formats are “built-in” because you do not need any other R
301 packages other than rmarkdown to use them.</p></li>
302 <li><p><a href="https://yihui.org/rmarkdown/dashboards.html">Part
303 III</a> documents several R Markdown extension packages that enable you
304 to build different applications or generate output documents with
305 different styles. These output formats are “extensions” because you will
306 need to install R packages, in addition to rmarkdown, to use
307 them.</p></li>
308 <li><p><a href="https://yihui.org/rmarkdown/parameterized-reports.html">Part
309 IV</a> covers advanced topics about R Markdown.</p></li>
310 </ul>
311 <p><br> <br></p>
312 </div>
313 <div id="going-further-with-examples" class="section level1">
314 <h1>Going further with examples</h1>
315 <p><a href="https://yihui.org/rmarkdown-cookbook/"><img src="https://yihui.org/rmarkdown-cookbook/images/cover.png" alt="R Markdown Cookbook" data-external="1" width="250" style="padding: 0 15px; float: right;" /></a></p>
316 <p><a href="https://yihui.org/rmarkdown-cookbook/">R Markdown
317 Cookbook</a> provides a range of examples on how to extend the
318 functionality of your R Markdown documents. As a cookbook, this guide is
319 recommended to new and intermediate R Markdown users who desire to
320 enhance the efficiency of using R Markdown and also explore the power of
321 R Markdown. The book is published by Chapman &amp; Hall/CRC, and you can
322 read it online for free.</p>
323 <p>This cookbook is not a full technical reference for R Markdown but
324 aims to supplement, instead of replace, the existing literature. The
325 book is thus organized by topics with example as self-contained as
326 possible so that readers can read this book with specific tasks in mind
327 to do with R Markdown.</p>
328 <p>The topics are the following</p>
329 <ul>
330 <li><a href="https://yihui.org/rmarkdown-cookbook/installation.html">1.
331 Installation</a></li>
332 <li><a href="https://yihui.org/rmarkdown-cookbook/conceptual-overview.html">2.
333 Conceptual Overview</a></li>
334 <li><a href="https://yihui.org/rmarkdown-cookbook/basics.html">3.
335 Basics</a></li>
336 <li><a href="https://yihui.org/rmarkdown-cookbook/document-elements.html">4.
337 Document Elements</a></li>
338 <li><a href="https://yihui.org/rmarkdown-cookbook/formatting.html">5.
339 Formatting</a></li>
340 <li><a href="https://yihui.org/rmarkdown-cookbook/latex-output.html">6.
341 LaTeX Output</a></li>
342 <li><a href="https://yihui.org/rmarkdown-cookbook/html-output.html">7.
343 HTML Output</a></li>
344 <li><a href="https://yihui.org/rmarkdown-cookbook/word.html">8.
345 Word</a></li>
346 <li><a href="https://yihui.org/rmarkdown-cookbook/multi-formats.html">9.
347 Multiple Output Formats</a></li>
348 <li><a href="https://yihui.org/rmarkdown-cookbook/tables.html">10.
349 Tables</a></li>
350 <li><a href="https://yihui.org/rmarkdown-cookbook/chunk-options.html">11. Chunk
351 Options</a></li>
352 <li><a href="https://yihui.org/rmarkdown-cookbook/output-hooks.html">12.
353 Output Hooks</a></li>
354 <li><a href="https://yihui.org/rmarkdown-cookbook/chunk-hooks.html">13.
355 Chunk Hooks</a></li>
356 <li><a href="https://yihui.org/rmarkdown-cookbook/knitr-misc.html">14.
357 Miscellaneous knitr Tricks</a></li>
358 <li><a href="https://yihui.org/rmarkdown-cookbook/other-languages.html">15.
359 Other Languages</a></li>
360 <li><a href="https://yihui.org/rmarkdown-cookbook/managing-projects.html">16.
361 Managing Projects</a></li>
362 <li><a href="https://yihui.org/rmarkdown-cookbook/workflow.html">17.
363 Workflow</a></li>
364 </ul>
365 <p><br> <br></p>
366 </div>
367 <div id="cheatsheets" class="section level1">
368 <h1>Cheatsheets</h1>
369 <p><a href="https://raw.githubusercontent.com/rstudio/cheatsheets/main/rmarkdown.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/main/pngs/rmarkdown.png" alt="R Markdown cheatsheet" data-external="1" width="400" style="padding: 0 15px; float: right;" /></a></p>
370 <p>The <a href="https://raw.githubusercontent.com/rstudio/cheatsheets/main/rmarkdown.pdf">R
371 Markdown cheatsheet</a> is a one page (two-sided) reference guide you
372 can download as a quick reference while you work.</p>
373 <p>You can access it from within the RStudio IDE:</p>
374 <ul>
375 <li><em>Help &gt; Cheatsheets &gt;<br />
376 R Markdown Cheat Sheet</em></li>
377 </ul>
378 </div>
379
380
381
382 <!-- code folding -->
383
384
385 <!-- dynamically load mathjax for compatibility with self-contained -->
386 <script>
387 (function () {
388 var script = document.createElement("script");
389 script.type = "text/javascript";
390 script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
391 document.getElementsByTagName("head")[0].appendChild(script);
392 })();
393 </script>
394
395 </body>
396 </html>