3 <html xmlns=
"http://www.w3.org/1999/xhtml">
8 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
9 <meta name=
"generator" content=
"pandoc" />
11 <meta name=
"viewport" content=
"width=device-width, initial-scale=1">
13 <meta name=
"author" content=
"Vignette Author" />
15 <meta name=
"date" content=
"2017-03-01" />
17 <title>Vignette Title
</title>
21 <style type=
"text/css">code{white-space: pre;}
</style>
22 <style type=
"text/css">
23 div.sourceCode { overflow-x: auto; }
24 table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
25 margin:
0; padding:
0; vertical-align: baseline; border: none; }
26 table.sourceCode { width:
100%; line-height:
100%; }
27 td.lineNumbers { text-align: right; padding-right:
4px; padding-left:
4px; color: #aaaaaa; border-right:
1px solid #aaaaaa; }
28 td.sourceCode { padding-left:
5px; }
29 code
> span.kw { color: #
007020; font-weight: bold; } /* Keyword */
30 code
> span.dt { color: #
902000; } /* DataType */
31 code
> span.dv { color: #
40a070; } /* DecVal */
32 code
> span.bn { color: #
40a070; } /* BaseN */
33 code
> span.fl { color: #
40a070; } /* Float */
34 code
> span.ch { color: #
4070a0; } /* Char */
35 code
> span.st { color: #
4070a0; } /* String */
36 code
> span.co { color: #
60a0b0; font-style: italic; } /* Comment */
37 code
> span.ot { color: #
007020; } /* Other */
38 code
> span.al { color: #ff0000; font-weight: bold; } /* Alert */
39 code
> span.fu { color: #
06287e; } /* Function */
40 code
> span.er { color: #ff0000; font-weight: bold; } /* Error */
41 code
> span.wa { color: #
60a0b0; font-weight: bold; font-style: italic; } /* Warning */
42 code
> span.cn { color: #
880000; } /* Constant */
43 code
> span.sc { color: #
4070a0; } /* SpecialChar */
44 code
> span.vs { color: #
4070a0; } /* VerbatimString */
45 code
> span.ss { color: #bb6688; } /* SpecialString */
46 code
> span.im { } /* Import */
47 code
> span.va { color: #
19177c; } /* Variable */
48 code
> span.cf { color: #
007020; font-weight: bold; } /* ControlFlow */
49 code
> span.op { color: #
666666; } /* Operator */
50 code
> span.bu { } /* BuiltIn */
51 code
> span.ex { } /* Extension */
52 code
> span.pp { color: #bc7a00; } /* Preprocessor */
53 code
> span.at { color: #
7d9029; } /* Attribute */
54 code
> span.do { color: #ba2121; font-style: italic; } /* Documentation */
55 code
> span.an { color: #
60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
56 code
> span.cv { color: #
60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
57 code
> span.in { color: #
60a0b0; font-weight: bold; font-style: italic; } /* Information */
62 <link href=
"data:text/css;charset=utf-8,body%20%7B%0Abackground%2Dcolor%3A%20%23fff%3B%0Amargin%3A%201em%20auto%3B%0Amax%2Dwidth%3A%20700px%3B%0Aoverflow%3A%20visible%3B%0Apadding%2Dleft%3A%202em%3B%0Apadding%2Dright%3A%202em%3B%0Afont%2Dfamily%3A%20%22Open%20Sans%22%2C%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20Arial%2C%20sans%2Dserif%3B%0Afont%2Dsize%3A%2014px%3B%0Aline%2Dheight%3A%201%2E35%3B%0A%7D%0A%23header%20%7B%0Atext%2Dalign%3A%20center%3B%0A%7D%0A%23TOC%20%7B%0Aclear%3A%20both%3B%0Amargin%3A%200%200%2010px%2010px%3B%0Apadding%3A%204px%3B%0Awidth%3A%20400px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Aborder%2Dradius%3A%205px%3B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Afont%2Dsize%3A%2013px%3B%0Aline%2Dheight%3A%201%2E3%3B%0A%7D%0A%23TOC%20%2Etoctitle%20%7B%0Afont%2Dweight%3A%20bold%3B%0Afont%2Dsize%3A%2015px%3B%0Amargin%2Dleft%3A%205px%3B%0A%7D%0A%23TOC%20ul%20%7B%0Apadding%2Dleft%3A%2040px%3B%0Amargin%2Dleft%3A%20%2D1%2E5em%3B%0Amargin%2Dtop%3A%205px%3B%0Amargin%2Dbottom%3A%205px%3B%0A%7D%0A%23TOC%20ul%20ul%20%7B%0Amargin%2Dleft%3A%20%2D2em%3B%0A%7D%0A%23TOC%20li%20%7B%0Aline%2Dheight%3A%2016px%3B%0A%7D%0Atable%20%7B%0Amargin%3A%201em%20auto%3B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dcolor%3A%20%23DDDDDD%3B%0Aborder%2Dstyle%3A%20outset%3B%0Aborder%2Dcollapse%3A%20collapse%3B%0A%7D%0Atable%20th%20%7B%0Aborder%2Dwidth%3A%202px%3B%0Apadding%3A%205px%3B%0Aborder%2Dstyle%3A%20inset%3B%0A%7D%0Atable%20td%20%7B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dstyle%3A%20inset%3B%0Aline%2Dheight%3A%2018px%3B%0Apadding%3A%205px%205px%3B%0A%7D%0Atable%2C%20table%20th%2C%20table%20td%20%7B%0Aborder%2Dleft%2Dstyle%3A%20none%3B%0Aborder%2Dright%2Dstyle%3A%20none%3B%0A%7D%0Atable%20thead%2C%20table%20tr%2Eeven%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Ap%20%7B%0Amargin%3A%200%2E5em%200%3B%0A%7D%0Ablockquote%20%7B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Apadding%3A%200%2E25em%200%2E75em%3B%0A%7D%0Ahr%20%7B%0Aborder%2Dstyle%3A%20solid%3B%0Aborder%3A%20none%3B%0Aborder%2Dtop%3A%201px%20solid%20%23777%3B%0Amargin%3A%2028px%200%3B%0A%7D%0Adl%20%7B%0Amargin%2Dleft%3A%200%3B%0A%7D%0Adl%20dd%20%7B%0Amargin%2Dbottom%3A%2013px%3B%0Amargin%2Dleft%3A%2013px%3B%0A%7D%0Adl%20dt%20%7B%0Afont%2Dweight%3A%20bold%3B%0A%7D%0Aul%20%7B%0Amargin%2Dtop%3A%200%3B%0A%7D%0Aul%20li%20%7B%0Alist%2Dstyle%3A%20circle%20outside%3B%0A%7D%0Aul%20ul%20%7B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Apre%2C%20code%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0Aborder%2Dradius%3A%203px%3B%0Acolor%3A%20%23333%3B%0Awhite%2Dspace%3A%20pre%2Dwrap%3B%20%0A%7D%0Apre%20%7B%0Aborder%2Dradius%3A%203px%3B%0Amargin%3A%205px%200px%2010px%200px%3B%0Apadding%3A%2010px%3B%0A%7D%0Apre%3Anot%28%5Bclass%5D%29%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Acode%20%7B%0Afont%2Dfamily%3A%20Consolas%2C%20Monaco%2C%20%27Courier%20New%27%2C%20monospace%3B%0Afont%2Dsize%3A%2085%25%3B%0A%7D%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%7B%0Apadding%3A%202px%200px%3B%0A%7D%0Adiv%2Efigure%20%7B%0Atext%2Dalign%3A%20center%3B%0A%7D%0Aimg%20%7B%0Abackground%2Dcolor%3A%20%23FFFFFF%3B%0Apadding%3A%202px%3B%0Aborder%3A%201px%20solid%20%23DDDDDD%3B%0Aborder%2Dradius%3A%203px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Amargin%3A%200%205px%3B%0A%7D%0Ah1%20%7B%0Amargin%2Dtop%3A%200%3B%0Afont%2Dsize%3A%2035px%3B%0Aline%2Dheight%3A%2040px%3B%0A%7D%0Ah2%20%7B%0Aborder%2Dbottom%3A%204px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Apadding%2Dbottom%3A%202px%3B%0Afont%2Dsize%3A%20145%25%3B%0A%7D%0Ah3%20%7B%0Aborder%2Dbottom%3A%202px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Afont%2Dsize%3A%20120%25%3B%0A%7D%0Ah4%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23f7f7f7%3B%0Amargin%2Dleft%3A%208px%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Ah5%2C%20h6%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23ccc%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Aa%20%7B%0Acolor%3A%20%230033dd%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Aa%3Ahover%20%7B%0Acolor%3A%20%236666ff%3B%20%7D%0Aa%3Avisited%20%7B%0Acolor%3A%20%23800080%3B%20%7D%0Aa%3Avisited%3Ahover%20%7B%0Acolor%3A%20%23BB00BB%3B%20%7D%0Aa%5Bhref%5E%3D%22http%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0Aa%5Bhref%5E%3D%22https%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0A%0Acode%20%3E%20span%2Ekw%20%7B%20color%3A%20%23555%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Edt%20%7B%20color%3A%20%23902000%3B%20%7D%20%0Acode%20%3E%20span%2Edv%20%7B%20color%3A%20%2340a070%3B%20%7D%20%0Acode%20%3E%20span%2Ebn%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Efl%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Ech%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Est%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Eco%20%7B%20color%3A%20%23888888%3B%20font%2Dstyle%3A%20italic%3B%20%7D%20%0Acode%20%3E%20span%2Eot%20%7B%20color%3A%20%23007020%3B%20%7D%20%0Acode%20%3E%20span%2Eal%20%7B%20color%3A%20%23ff0000%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Efu%20%7B%20color%3A%20%23900%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%20code%20%3E%20span%2Eer%20%7B%20color%3A%20%23a61717%3B%20background%2Dcolor%3A%20%23e3d2d2%3B%20%7D%20%0A" rel=
"stylesheet" type=
"text/css" />
71 <h1 class=
"title toc-ignore">Vignette Title
</h1>
72 <h4 class=
"author"><em>Vignette Author
</em></h4>
73 <h4 class=
"date"><em>2017-
03-
01</em></h4>
77 <p>Vignettes are long form documentation commonly included in packages. Because they are part of the distribution of the package, they need to be as compact as possible. The
<code>html_vignette
</code> output type provides a custom style sheet (and tweaks some options) to ensure that the resulting html is as small as possible. The
<code>html_vignette
</code> format:
</p>
79 <li>Never uses retina figures
</li>
80 <li>Has a smaller default figure size
</li>
81 <li>Uses a custom CSS stylesheet instead of the default Twitter Bootstrap style
</li>
83 <div id=
"vignette-info" class=
"section level2">
84 <h2>Vignette Info
</h2>
85 <p>Note the various macros within the
<code>vignette
</code> section of the metadata block above. These are required in order to instruct R how to build the vignette. Note that you should change the
<code>title
</code> field and the
<code>\VignetteIndexEntry
</code> to match the title of your vignette.
</p>
87 <div id=
"styles" class=
"section level2">
89 <p>The
<code>html_vignette
</code> template includes a basic CSS theme. To override this theme you can specify your own CSS in the document metadata as follows:
</p>
91 rmarkdown::html_vignette:
92 css: mystyles.css
</code></pre>
94 <div id=
"figures" class=
"section level2">
96 <p>The figure sizes have been customised so that you can easily put two images side-by-side.
</p>
97 <div class=
"sourceCode"><pre class=
"sourceCode r"><code class=
"sourceCode r"><span class=
"kw">plot
</span>(
<span class=
"dv">1</span><span class=
"op">:
</span><span class=
"dv">10</span>)
98 <span class=
"kw">plot
</span>(
<span class=
"dv">10</span><span class=
"op">:
</span><span class=
"dv">1</span>)
</code></pre></div>
99 <p><img src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAEgCAMAAAAjXV6yAAAC91BMVEUAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMUFBQWFhYXFxcYGBgZGRkaGhobGxscHBwdHR0eHh4fHx8gICAhISEiIiIjIyMkJCQlJSUmJiYnJycoKCgpKSkqKiorKyssLCwtLS0uLi4vLy8wMDAxMTEyMjIzMz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+8wufyskaVkffgr7jn915HGKgOa7LuG8mdTDT865bJ3jf0q46+hZkbldj/vbOL3NnsbGVp+4cQ+ZR0+tdzPfr9deuOvoWRAs+eNn3gxROkGlWmFvoYjNdWPV/lKYIo8q1QX+CdAYKAkBBACgIAAUBoCAAFASAggBQEAAKAkBBACgIAAUBoCAAFASAggBQEAAKAkBBACgIAAUBoCAAFASAggBQEMD/AeMGyou/TK6wAAAAAElFTkSuQmCC" /></p>
100 <p>You can enable figure captions by
<code>fig_caption: yes
</code> in YAML:
</p>
102 rmarkdown::html_vignette:
103 fig_caption: yes
</code></pre>
104 <p>Then you can use the chunk option
<code>fig.cap =
"Your figure caption.
"</code> in
<strong>knitr
</strong>.
</p>
106 <div id=
"more-examples" class=
"section level2">
107 <h2>More Examples
</h2>
108 <p>You can write math expressions, e.g.
<span class=
"math inline">\(Y = X\beta + \epsilon\)
</span>, footnotes
<a href=
"#fn1" class=
"footnoteRef" id=
"fnref1"><sup>1</sup></a>, and tables, e.g. using
<code>knitr::kable()
</code>.
</p>
113 <th align=
"right">mpg
</th>
114 <th align=
"right">cyl
</th>
115 <th align=
"right">disp
</th>
116 <th align=
"right">hp
</th>
117 <th align=
"right">drat
</th>
118 <th align=
"right">wt
</th>
119 <th align=
"right">qsec
</th>
120 <th align=
"right">vs
</th>
121 <th align=
"right">am
</th>
122 <th align=
"right">gear
</th>
123 <th align=
"right">carb
</th>
129 <td align=
"right">21.0</td>
130 <td align=
"right">6</td>
131 <td align=
"right">160.0</td>
132 <td align=
"right">110</td>
133 <td align=
"right">3.90</td>
134 <td align=
"right">2.620</td>
135 <td align=
"right">16.46</td>
136 <td align=
"right">0</td>
137 <td align=
"right">1</td>
138 <td align=
"right">4</td>
139 <td align=
"right">4</td>
142 <td>Mazda RX4 Wag
</td>
143 <td align=
"right">21.0</td>
144 <td align=
"right">6</td>
145 <td align=
"right">160.0</td>
146 <td align=
"right">110</td>
147 <td align=
"right">3.90</td>
148 <td align=
"right">2.875</td>
149 <td align=
"right">17.02</td>
150 <td align=
"right">0</td>
151 <td align=
"right">1</td>
152 <td align=
"right">4</td>
153 <td align=
"right">4</td>
157 <td align=
"right">22.8</td>
158 <td align=
"right">4</td>
159 <td align=
"right">108.0</td>
160 <td align=
"right">93</td>
161 <td align=
"right">3.85</td>
162 <td align=
"right">2.320</td>
163 <td align=
"right">18.61</td>
164 <td align=
"right">1</td>
165 <td align=
"right">1</td>
166 <td align=
"right">4</td>
167 <td align=
"right">1</td>
170 <td>Hornet
4 Drive
</td>
171 <td align=
"right">21.4</td>
172 <td align=
"right">6</td>
173 <td align=
"right">258.0</td>
174 <td align=
"right">110</td>
175 <td align=
"right">3.08</td>
176 <td align=
"right">3.215</td>
177 <td align=
"right">19.44</td>
178 <td align=
"right">1</td>
179 <td align=
"right">0</td>
180 <td align=
"right">3</td>
181 <td align=
"right">1</td>
184 <td>Hornet Sportabout
</td>
185 <td align=
"right">18.7</td>
186 <td align=
"right">8</td>
187 <td align=
"right">360.0</td>
188 <td align=
"right">175</td>
189 <td align=
"right">3.15</td>
190 <td align=
"right">3.440</td>
191 <td align=
"right">17.02</td>
192 <td align=
"right">0</td>
193 <td align=
"right">0</td>
194 <td align=
"right">3</td>
195 <td align=
"right">2</td>
199 <td align=
"right">18.1</td>
200 <td align=
"right">6</td>
201 <td align=
"right">225.0</td>
202 <td align=
"right">105</td>
203 <td align=
"right">2.76</td>
204 <td align=
"right">3.460</td>
205 <td align=
"right">20.22</td>
206 <td align=
"right">1</td>
207 <td align=
"right">0</td>
208 <td align=
"right">3</td>
209 <td align=
"right">1</td>
213 <td align=
"right">14.3</td>
214 <td align=
"right">8</td>
215 <td align=
"right">360.0</td>
216 <td align=
"right">245</td>
217 <td align=
"right">3.21</td>
218 <td align=
"right">3.570</td>
219 <td align=
"right">15.84</td>
220 <td align=
"right">0</td>
221 <td align=
"right">0</td>
222 <td align=
"right">3</td>
223 <td align=
"right">4</td>
227 <td align=
"right">24.4</td>
228 <td align=
"right">4</td>
229 <td align=
"right">146.7</td>
230 <td align=
"right">62</td>
231 <td align=
"right">3.69</td>
232 <td align=
"right">3.190</td>
233 <td align=
"right">20.00</td>
234 <td align=
"right">1</td>
235 <td align=
"right">0</td>
236 <td align=
"right">4</td>
237 <td align=
"right">2</td>
241 <td align=
"right">22.8</td>
242 <td align=
"right">4</td>
243 <td align=
"right">140.8</td>
244 <td align=
"right">95</td>
245 <td align=
"right">3.92</td>
246 <td align=
"right">3.150</td>
247 <td align=
"right">22.90</td>
248 <td align=
"right">1</td>
249 <td align=
"right">0</td>
250 <td align=
"right">4</td>
251 <td align=
"right">2</td>
255 <td align=
"right">19.2</td>
256 <td align=
"right">6</td>
257 <td align=
"right">167.6</td>
258 <td align=
"right">123</td>
259 <td align=
"right">3.92</td>
260 <td align=
"right">3.440</td>
261 <td align=
"right">18.30</td>
262 <td align=
"right">1</td>
263 <td align=
"right">0</td>
264 <td align=
"right">4</td>
265 <td align=
"right">4</td>
269 <p>Also a quote using
<code>></code>:
</p>
271 <p>“He who gives up [code] safety for [code] speed deserves neither.” (
<a href=
"https://twitter.com/hadleywickham/status/504368538874703872">via
</a>)
</p>
274 <div class=
"footnotes">
277 <li id=
"fn1"><p>A footnote here.
<a href=
"#fnref1">↩
</a></p></li>
283 <!-- dynamically load mathjax for compatibility with self-contained -->
286 var script = document.createElement("script");
287 script.type = "text/javascript";
288 script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
289 document.getElementsByTagName("head")[
0].appendChild(script);