-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.xml
453 lines (394 loc) · 41.1 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>nutriverse</title>
<link>https://nutriverse.io/</link>
<atom:link href="https://nutriverse.io/index.xml" rel="self" type="application/rss+xml" />
<description>nutriverse</description>
<generator>Hugo -- gohugo.io</generator><language>en-gb</language><lastBuildDate>Wed, 25 Mar 2020 00:00:00 +0000</lastBuildDate>
<item>
<title>pkgdown 1.5.0</title>
<link>https://nutriverse.io/blog/2020/03/pkgdown-1-5-0/</link>
<pubDate>Wed, 25 Mar 2020 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/blog/2020/03/pkgdown-1-5-0/</guid>
<description><p>We’re well chuffed to announce that
<a href="https://pkgdown.r-lib.org/" target="_blank" rel="noopener">pkgdown</a> 1.5.0 is now available on CRAN. pkgdown is designed to make it quick and easy to build a website for your package. Install it with:</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-r" data-lang="r"><span style="display:flex;"><span><span style="color:#00f">install.packages</span>(<span style="color:#ba2121">&#34;pkgdown&#34;</span>)
</span></span></code></pre></div><p>The most important changes are highlighted below and you can see a full list of changes in the
<a href="https://pkgdown.r-lib.org/news/" target="_blank" rel="noopener">changelog</a>.</p>
<h2 id="articles">Articles
<a href="#articles">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>For packages with many vignettes/articles, we’ve provided much greater control over the
<a href="https://pkgdown.r-lib.org/articles" target="_blank" rel="noopener">articles index</a> and navbar. There are two major new features in this release:</p>
<ul>
<li>
<p>The articles index page now displays article <code>description</code>s, taken from
YAML metadata in the header of each article. This lets you provide
more context for each article.</p>
</li>
<li>
<p>The articles navbar is now controlled by the <code>articles</code> section in
<code>_pkgdown.yml</code>. The ordering of the sections, and articles within
them, control the order of the articles in the navbar, and you can
use the new <code>navbar</code> field to control whether or not each section
appears in the navbar.</p>
</li>
</ul>
<p>Learn more about both of these features in
<a href="https://pkgdown.r-lib.org/reference/build_articles.html#index-and-navbar" target="_blank" rel="noopener">?<code>build_articles</code></a>.</p>
<p>Thanks to
<a href="https://github.com/gadenbuie" target="_blank" rel="noopener">Garrick Aden-Buie</a>, you also get much richer control over Open Graph and Twitter metadata for individual articles. See new
<a href="https://pkgdown.r-lib.org/articles/metadata.html" target="_blank" rel="noopener"><code>vignette(&quot;metadata&quot;)</code></a> for details.</p>
<h2 id="reference-index">Reference index
<a href="#reference-index">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>For packages with many documentation topics, you can add an additional layer of hierarchy to the reference index, using the new <code>subtitle</code> field. To give you some sense for what that might look like, here’s an example for a partial (and imaginary) dplyr reference index:</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-yaml" data-lang="yaml"><span style="display:flex;"><span><span style="color:#008000;font-weight:bold">references</span>:<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">title</span>:<span style="color:#bbb"> </span>Data manipulation<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">subtitle</span>:<span style="color:#bbb"> </span>One table<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">contents</span>:<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span>- arrange<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span>- filter<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span>- mutate<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">subtitle</span>:<span style="color:#bbb"> </span>two table<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">contents</span>:<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span>- ends_with(&#34;_join&#34;)<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">title</span>:<span style="color:#bbb"> </span>Datasets<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"></span>- <span style="color:#008000;font-weight:bold">contents</span>:<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span>- has_keyword(&#34;datasets&#34;)<span style="color:#bbb">
</span></span></span></code></pre></div>
<h2 id="tables-of-contents">Tables of contents
<a href="#tables-of-contents">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>Sidebar tables of contents now use
<a href="https://afeld.github.io/bootstrap-toc/" target="_blank" rel="noopener">bootstrap-toc</a>, which considerably improves navigation for long articles and reference pages.</p>
<h2 id="other-source-repositories">Other source repositories
<a href="#other-source-repositories">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>You can now control the links to source files (in reference pages and articles) and issues and users (in the NEWS) with new the <code>repo$url</code> config parameter. This makes it easier to use pkgdown with GitHub enterprise, packages in subdirectories, and other source hosts (like bitbucket).</p>
<p>The YAML looks something like this:</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-yaml" data-lang="yaml"><span style="display:flex;"><span><span style="color:#008000;font-weight:bold">repo</span>:<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span><span style="color:#008000;font-weight:bold">url</span>:<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span><span style="color:#008000;font-weight:bold">home</span>:<span style="color:#bbb"> </span>https://github.com/r-lib/pkgdown/<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span><span style="color:#008000;font-weight:bold">source</span>:<span style="color:#bbb"> </span>https://github.com/r-lib/pkgdown/blob/master/<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span><span style="color:#008000;font-weight:bold">issue</span>:<span style="color:#bbb"> </span>https://github.com/r-lib/pkgdown/issues/<span style="color:#bbb">
</span></span></span><span style="display:flex;"><span><span style="color:#bbb"> </span><span style="color:#008000;font-weight:bold">user</span>:<span style="color:#bbb"> </span>https://github.com/<span style="color:#bbb">
</span></span></span></code></pre></div><p>The individual components (e.g. path, issue number, username) are pasted on the end of these urls so they should have trailing <code>/</code>s.</p>
<p>pkgdown now detects GitLab urls automatically (since they use the same structure as GitHub), so you don’t need to set these links if you package is hosted on GitLab, and you’ve included a link to your source repo in the <code>URL</code> or <code>BugReports</code> <code>DESCRIPTION</code> fields.</p>
<h2 id="acknowledgements">Acknowledgements
<a href="#acknowledgements">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>A big thank you goes to
<a href="https://github.com/jayhesselberth" target="_blank" rel="noopener">@jayhesselberth</a> (the co-maintainer of pkgdown), and to to the 61 other people who helped make this release possible:
<a href="https://github.com/AshesITR" target="_blank" rel="noopener">@AshesITR</a>,
<a href="https://github.com/baptiste" target="_blank" rel="noopener">@baptiste</a>,
<a href="https://github.com/Bisaloo" target="_blank" rel="noopener">@Bisaloo</a>,
<a href="https://github.com/carloscinelli" target="_blank" rel="noopener">@carloscinelli</a>,
<a href="https://github.com/cboettig" target="_blank" rel="noopener">@cboettig</a>,
<a href="https://github.com/coatless" target="_blank" rel="noopener">@coatless</a>,
<a href="https://github.com/coolbutuseless" target="_blank" rel="noopener">@coolbutuseless</a>,
<a href="https://github.com/DanielEWeeks" target="_blank" rel="noopener">@DanielEWeeks</a>,
<a href="https://github.com/davidchall" target="_blank" rel="noopener">@davidchall</a>,
<a href="https://github.com/DavorJ" target="_blank" rel="noopener">@DavorJ</a>,
<a href="https://github.com/dimagor" target="_blank" rel="noopener">@dimagor</a>,
<a href="https://github.com/erikcs" target="_blank" rel="noopener">@erikcs</a>,
<a href="https://github.com/ferroao" target="_blank" rel="noopener">@ferroao</a>,
<a href="https://github.com/floriandeboissieu" target="_blank" rel="noopener">@floriandeboissieu</a>,
<a href="https://github.com/flying-sheep" target="_blank" rel="noopener">@flying-sheep</a>,
<a href="https://github.com/fmichonneau" target="_blank" rel="noopener">@fmichonneau</a>,
<a href="https://github.com/fmmattioni" target="_blank" rel="noopener">@fmmattioni</a>,
<a href="https://github.com/gaborcsardi" target="_blank" rel="noopener">@gaborcsardi</a>,
<a href="https://github.com/genomaths" target="_blank" rel="noopener">@genomaths</a>,
<a href="https://github.com/gustavdelius" target="_blank" rel="noopener">@gustavdelius</a>,
<a href="https://github.com/hadley" target="_blank" rel="noopener">@hadley</a>,
<a href="https://github.com/hbaniecki" target="_blank" rel="noopener">@hbaniecki</a>,
<a href="https://github.com/ijlyttle" target="_blank" rel="noopener">@ijlyttle</a>,
<a href="https://github.com/IndrajeetPatil" target="_blank" rel="noopener">@IndrajeetPatil</a>,
<a href="https://github.com/jangorecki" target="_blank" rel="noopener">@jangorecki</a>,
<a href="https://github.com/jayhesselberth" target="_blank" rel="noopener">@jayhesselberth</a>,
<a href="https://github.com/jeffwong-nflx" target="_blank" rel="noopener">@jeffwong-nflx</a>,
<a href="https://github.com/jennybc" target="_blank" rel="noopener">@jennybc</a>,
<a href="https://github.com/jeroen" target="_blank" rel="noopener">@jeroen</a>,
<a href="https://github.com/jimhester" target="_blank" rel="noopener">@jimhester</a>,
<a href="https://github.com/JoshuaSturm" target="_blank" rel="noopener">@JoshuaSturm</a>,
<a href="https://github.com/jranke" target="_blank" rel="noopener">@jranke</a>,
<a href="https://github.com/kevinushey" target="_blank" rel="noopener">@kevinushey</a>,
<a href="https://github.com/kevinwang09" target="_blank" rel="noopener">@kevinwang09</a>,
<a href="https://github.com/krlmlr" target="_blank" rel="noopener">@krlmlr</a>,
<a href="https://github.com/lbusett" target="_blank" rel="noopener">@lbusett</a>,
<a href="https://github.com/lcolladotor" target="_blank" rel="noopener">@lcolladotor</a>,
<a href="https://github.com/lgatto" target="_blank" rel="noopener">@lgatto</a>,
<a href="https://github.com/lindeloev" target="_blank" rel="noopener">@lindeloev</a>,
<a href="https://github.com/lionel-" target="_blank" rel="noopener">@lionel-</a>,
<a href="https://github.com/lorenzwalthert" target="_blank" rel="noopener">@lorenzwalthert</a>,
<a href="https://github.com/m-l-1" target="_blank" rel="noopener">@m-l-1</a>,
<a href="https://github.com/maelle" target="_blank" rel="noopener">@maelle</a>,
<a href="https://github.com/mattmalin" target="_blank" rel="noopener">@mattmalin</a>,
<a href="https://github.com/meghapsimatrix" target="_blank" rel="noopener">@meghapsimatrix</a>,
<a href="https://github.com/mikldk" target="_blank" rel="noopener">@mikldk</a>,
<a href="https://github.com/mllg" target="_blank" rel="noopener">@mllg</a>,
<a href="https://github.com/ms609" target="_blank" rel="noopener">@ms609</a>,
<a href="https://github.com/nealrichardson" target="_blank" rel="noopener">@nealrichardson</a>,
<a href="https://github.com/nschiett" target="_blank" rel="noopener">@nschiett</a>,
<a href="https://github.com/nteetor" target="_blank" rel="noopener">@nteetor</a>,
<a href="https://github.com/pat-s" target="_blank" rel="noopener">@pat-s</a>,
<a href="https://github.com/peterdesmet" target="_blank" rel="noopener">@peterdesmet</a>,
<a href="https://github.com/rupertoverall" target="_blank" rel="noopener">@rupertoverall</a>,
<a href="https://github.com/schloerke" target="_blank" rel="noopener">@schloerke</a>,
<a href="https://github.com/slowkow" target="_blank" rel="noopener">@slowkow</a>,
<a href="https://github.com/t-kalinowski" target="_blank" rel="noopener">@t-kalinowski</a>,
<a href="https://github.com/wendtke" target="_blank" rel="noopener">@wendtke</a>,
<a href="https://github.com/ycphs" target="_blank" rel="noopener">@ycphs</a>,
<a href="https://github.com/yiluheihei" target="_blank" rel="noopener">@yiluheihei</a>, and
<a href="https://github.com/yonicd" target="_blank" rel="noopener">@yonicd</a>.</p>
</description>
</item>
<item>
<title>rstudio::conf 2020</title>
<link>https://nutriverse.io/events/rstudio-conf-2020/</link>
<pubDate>Mon, 27 Jan 2020 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/events/rstudio-conf-2020/</guid>
<description><p>rstudio::conf 2020 covers all things RStudio, including workshops to teach you the tidyverse, and talks to show you the latest and greatest features.</p>
</description>
</item>
<item>
<title>Contact</title>
<link>https://nutriverse.io/home/band_three/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/home/band_three/</guid>
<description><p>For any queries or feedback, contact us by
<a href="mailto:[email protected]">email</a>, message us on
<a href="https://fosstodon.org/@katilingban" target="_blank" rel="noopener">mastodon</a>, file an issue or seek support by visiting us on
<a href="https://github.com/nutriverse" target="_blank" rel="noopener">GitHub</a> and going to the respective package/s you have issues on.</p>
</description>
</item>
<item>
<title>Explore the nutriverse</title>
<link>https://nutriverse.io/home/band_two/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/home/band_two/</guid>
<description><p>Explore the various tools and tips provided by the nutriverse for nutrition data analysis.</p>
</description>
</item>
<item>
<title>Get help!</title>
<link>https://nutriverse.io/help/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/help/</guid>
<description><blockquote>
<p>In space, no one can hear you scream.</p>
<p>&ndash; <cite>Alien (1979)</cite></p>
</blockquote>
<p>Luckily the tidyverse is a friendlier place. Ease of adoption and ease of use are fundamental design principles for the packages in the tidyverse. If you are banging your head in frustration, here&rsquo;s how you can help us help you.</p>
<h2 id="reprex">Make a reprex
<a href="#reprex">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>If you need help getting unstuck, the first step is to create a <strong>reprex</strong>, or reproducible example. The goal of a reprex is to package your problematic code in such a way that other people can run it and feel your pain. Then, hopefully, they can provide a solution and put you out of your misery.</p>
<p>There are two parts to creating a reprex:</p>
<ul>
<li>
<p>First, you need to make your code reproducible. This means that you need
to capture everything, i.e., include any <code>library()</code> calls and create all necessary objects. The easiest way to make sure you&rsquo;ve done this is to use the
<a href="https://nutriverse.io/help#reprex-pkg">reprex package</a>.</p>
</li>
<li>
<p>Second, you need to make it minimal. Strip away everything that is not directly related to your problem. This usually involves creating a much smaller and simpler R object than the one you&rsquo;re facing in real life or even using built-in data.</p>
</li>
</ul>
<p>That sounds like a lot of work! And it can be, but it has a great payoff:</p>
<ul>
<li>
<p>80% of the time creating an excellent reprex reveals the source of your problem. It&rsquo;s amazing how often the process of writing up a self-contained and minimal example allows you to answer your own question.</p>
</li>
<li>
<p>The other 20% of time you will have captured the essence of your problem in
a way that is easy for others to play with. This substantially improves
your chances of getting help!</p>
</li>
</ul>
<h2 id="reprex-pkg">The reprex package
<a href="#reprex-pkg">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><p>When creating a reprex by hand, it&rsquo;s easy to accidentally miss something that means your code can&rsquo;t be run on someone else&rsquo;s computer. Avoid this problem by using the
<a href="http://reprex.tidyverse.org" target="_blank" rel="noopener">reprex package</a>. It&rsquo;s installed as part of the tidyverse <em>(will be true soon)</em> or you can install it by itself. Go ahead and load it.</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-R" data-lang="R"><span style="display:flex;"><span><span style="color:#408080;font-style:italic">## pick one:</span>
</span></span><span style="display:flex;"><span><span style="color:#408080;font-style:italic">## install.packages(&#34;tidyverse&#34;) &lt;-- will work soon</span>
</span></span><span style="display:flex;"><span><span style="color:#408080;font-style:italic">## install.packages(&#34;reprex&#34;) &lt;-- works today</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#00f">library</span>(reprex)
</span></span></code></pre></div><p>Write a bit of code and copy it to the clipboard:</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-R" data-lang="R"><span style="display:flex;"><span>(y <span style="color:#666">&lt;-</span> <span style="color:#666">1</span><span style="color:#666">:</span><span style="color:#666">4</span>)
</span></span><span style="display:flex;"><span><span style="color:#00f">mean</span>(y)
</span></span></code></pre></div><p>Enter <code>reprex()</code> in the R Console. In RStudio, you&rsquo;ll see a preview of your rendered reprex.</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-R" data-lang="R"><span style="display:flex;"><span>(y <span style="color:#666">&lt;-</span> <span style="color:#666">1</span><span style="color:#666">:</span><span style="color:#666">4</span>)
</span></span><span style="display:flex;"><span><span style="color:#408080;font-style:italic">#&gt; [1] 1 2 3 4</span>
</span></span><span style="display:flex;"><span><span style="color:#00f">mean</span>(y)
</span></span><span style="display:flex;"><span><span style="color:#408080;font-style:italic">#&gt; [1] 2.5</span>
</span></span></code></pre></div><p>It is now ready and waiting on your clipboard, so you can paste it into, say, a GitHub issue. In RStudio, you can access reprex from the
<a href="https://rstudio.github.io/rstudioaddins/" target="_blank" rel="noopener">addins menu</a>, which makes it even easier to point out your code and select the output format.</p>
<p><img src="reprex-addins-menu.png" alt="reprex addins menu"></img>
<img src="reprex-addin.png" alt="reprex addin interface"></img></p>
<p>In either case, you can eventually
<a href="http://reprex.tidyverse.org" target="_blank" rel="noopener">explore other features</a>, such as formatting output for Stack Overflow or as a commented R script. reprex even uploads figures so you can easily ask questions about ggplot2.</p>
<p>If your code is not self-contained, running <code>reprex()</code> results in an error. It may feel like tough love, but this way you can get your story straight in private. The reprex format also strongly encourages you to find the minimal dataset necessary to show your problem. Creating an effective reprex is a learned skill and the immediate feedback from reprex makes this very concrete.</p>
<h2 id="where-to-ask">Where to ask
<a href="#where-to-ask">
<svg class="anchor-symbol" aria-hidden="true" height="26" width="26" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="currentColor"></path>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76.0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71.0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71.0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76.0 5-2.24 5-5s-2.24-5-5-5z"></path>
</svg>
</a>
</h2><img src="help-is-on-the-way.jpg" alt="" width="200" height="200" align="right" style="padding:1em;" />
<!-- Thanks to Mark Hansen for the image! https://twitter.com/cocteau/status/893811714420088832 -->
<p>Now that you&rsquo;ve made a reprex that you can easily inflict on others, you need to share it in an appropriate forum. Here are some options:</p>
<ul>
<li>
<p>
<a href="http://community.rstudio.com" target="_blank" rel="noopener"><strong>community.rstudio.com</strong></a>: This is a warm
and welcoming place to ask any questions you might have about the
tidyverse (and you can also ask questions about shiny and RStudio there
too!)</p>
</li>
<li>
<p>
<a href="https://stackoverflow.com" target="_blank" rel="noopener"><strong>Stack Overflow</strong></a>. You&rsquo;re probably already familiar
with Stack Overflow from googling: it&rsquo;s a frequent source of answers to
coding related questions. Asking a question on Stack Overflow can be
intimidating, but if you&rsquo;ve taken the time to create a reprex, you&rsquo;re much
more likely to get a useful answer. Make sure to
<a href="https://stackoverflow.com/help/tagging" target="_blank" rel="noopener">tag your question</a> with R
and tidyverse so that the right people are more likely to see it.</p>
</li>
<li>
<p>
<a href="https://twitter.com/search?q=%23rstats&amp;src=typd" target="_blank" rel="noopener"><strong>Twitter</strong></a>. It&rsquo;s hard to share your reprex only on twitter, because 140 characters are rarely enough and screenshots don&rsquo;t help others play with your code. But twitter is a great place to share a link to your reprex that&rsquo;s hosted elsewhere. The
<a href="https://twitter.com/search?q=%23rstats&amp;src=typd" target="_blank" rel="noopener">#rstats twitter</a> community is extremely friendly and active, and is a great crowd to be a part of. Make sure you tag your tweet with #rstats and #tidyverse.</p>
</li>
<li>
<p>If you think you&rsquo;ve found a <strong>bug</strong>, please follow the instructions on
<a href="https://nutriverse.io/contribute#issues">contributing to the tidyverse</a>.</p>
</li>
</ul>
</description>
</item>
<item>
<title>Nutriverse</title>
<link>https://nutriverse.io/home/band_one/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/home/band_one/</guid>
<description><p>Our mission is to foster a community of nutrition data analysts who use R language for statistical computing. We aim to provide this community with support through the development of robust and performant R packages as tools for their analytical tasks, and learning through day-to-day technical guidance and impactful peer-to-peer learning.</p>
</description>
</item>
<item>
<title>nutriverse packages</title>
<link>https://nutriverse.io/packages/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://nutriverse.io/packages/</guid>
<description>
<div class="package-section">
<div class="packages">
<div class="package">
<a href="https://nutriverse.io/zscorer" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/zscorer.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/zscorer" target="_blank">zscorer</a></h3>
<p>Anthropometric z-score calculator&nbsp;<a href="https://nutriverse.io/zscorer" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<a href="https://nutriverse.io/nipnTK" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/nipnTK.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/nipnTK" target="_blank">nipnTK</a></h3>
<p>National Information Platforms for Nutrition (NiPN) data quality toolkit&nbsp;<a href="https://nutriverse.io/nipnTK" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<a href="https://nutriverse.io/anthrocheckr" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/anthrocheckr.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/anthrocheckr" target="_blank">anthrocheckr</a></h3>
<p>An implementation of anthropometric measurement standardisation Tests&nbsp;<a href="https://nutriverse.io/anthrocheckr" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<a href="https://nutriverse.io/micronutr" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/micronutr.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/micronutr" target="_blank">micronutr</a></h3>
<p>Determining Vitamin and Mineral Status of Populations&nbsp;<a href="https://nutriverse.io/micronutr" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<a href="https://nutriverse.io/squeacr" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/squeacr.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/squeacr" target="_blank">squeacr</a></h3>
<p>Semi-Quantitative Evaluation of Access and Coverage (SQUEAC) Tools&nbsp;<a href="https://nutriverse.io/squeacr" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<a href="https://nutriverse.io/sleacr" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/sleacr.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/sleacr" target="_blank">sleacr</a></h3>
<p>Simplified Lot Quality Assurance Sampling Evaluation of Access and Coverage (SLEAC) Tools&nbsp;<a href="https://nutriverse.io/sleacr" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<div class="package-info">
<h3><a href="https://nutriverse.io/dietry" target="_blank">dietry</a></h3>
<p>Utilities for Calculating Dietary Intake Indicators for Food Security Assessments&nbsp;<a href="https://nutriverse.io/dietry" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
<div class="package">
<a href="https://nutriverse.io/smartr" target="_blank">
<img class="package-image" src="https://nutriverse.io/css/images/hex/smartr.png" alt="" aria-hidden="true"></img>
</a>
<div class="package-info">
<h3><a href="https://nutriverse.io/smartr" target="_blank">smartr</a></h3>
<p>Tools for Nutritional Status and Mortality Rate Assessments and Surveys&nbsp;<a href="https://nutriverse.io/smartr" aria-hidden="true" target="_blank">Go to docs...</a></p>
</div>
</div>
</div>
</div>
</description>
</item>
</channel>
</rss>