<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/jc-and-the-vignettes/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://jcarroll.com.au/2018/03/06/jc-and-the-vignettes/"> R – Irregularly Scheduled Programming</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>If that’s not a great 1960’s band name then I don’t know what is (hint: I don’t know what is).</p>
<p><a rel="nofollow" href="https://www.billboard.com/music/the-marvelettes" target="_blank"><img src="https://i2.wp.com/jcarroll.com.au/wp-content/uploads/2018/03/marvelettes.jpg?resize=300%2C199&ssl=1" alt="The Marvelettes: https://www.billboard.com/music/the-marvelettes" align="none" data-recalc-dims="1"></a></p>
<p><span></span></p>
<p>At the start of the year I set out my ‘goals for 2018’ just like many of us do; an overly ambitious list of things we’d like to do to better ourselves. My list includes improving my French to better interact with a colleague I cohabitate and work with while onsite (my 48 day streak on Duolingo was interrupted by travel… <em>c’est un bon début</em>); reading more books (two a month, so far so good); writing more blog posts (one a month, this one included); interacting more with the R community; and using a bullet journal (all of these are currently tracked in said bullet journal). </p>
<p>My original plan for the increased interaction was to pick an R package a month. I’d pick a package which didn’t already have a vignette, learn the package, write a vignette, submit it as a PR, and blog about the experience. This seemed straightforward enough. There’s a long-standing feeling that too many R packages lack vignettes (note: <a rel="nofollow" href="https://juliasilge.com/blog/mining-cran-description/" target="_blank">https://juliasilge.com/blog/mining-cran-description/</a> — an analysis I intend to reproduce/update). I looked through my backlog of interesting packages I meant to look at more closely and checked to see if they already had vignettes… all of them did (womp womp).</p>
<p>For those not familiar, vignettes in R packages are long-form documentation. Not just a listing of each function, but a good solid walkthrough of background, a use-case, examples, motivations, pitfalls, comparisons, performance metrics, and so on. Function documentation rarely provides sufficient detail like this, so vignettes are a convenient way to include some longer discussions about your package. The problem is that people either neglect to, forget to, or aren’t aware that they can (and should!) write vignettes for their packages. </p>
<p>Rather than admit defeat and throw another resolution on the ever-growing pile of failures (I’m looking your way, dusty calligraphy set) I decided to take a different approach. I sent out an offer on Twitter: <em>suggest a package which needs a vignette</em>. It seemed to be popular enough</p>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">The old argument was that <a rel="nofollow" href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw" target="_blank">#rstats</a> packages generally lack vignettes. Someone scraped CRAN and found 'most' (lots of?) packages don't have them.</p>
<p>With my book now with the copyeditors, I finally have some time to get/give back to this awesome community…</p>
<p>— Jonathan Carroll (@carroll_jono) <a rel="nofollow" href="https://twitter.com/carroll_jono/status/961139524901527552?ref_src=twsrc%5Etfw" target="_blank">February 7, 2018</a></p>
</blockquote>
<p></p>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">So, my offer: point me towards a new(ish) package on GitHub that (a) does something cool, and (b) doesn't have a vignette. I'll learn the package inside-out, write a vignette, submit it as a PR, and blog about it. Your package, someone else's which you use, I don't mind…</p>
<p>— Jonathan Carroll (@carroll_jono) <a rel="nofollow" href="https://twitter.com/carroll_jono/status/961139533701054464?ref_src=twsrc%5Etfw" target="_blank">February 7, 2018</a></p>
</blockquote>
<p></p>
<p>Thus began the ‘Volunteer Vignettes’ program. I got to work on the first one almost immediately, and doing so has already uncovered bugs, inconsistencies, and insights to the author (I do plan to start a conversation with original authors before beginning any actual work). I’ll be writing each one up once I’m ‘done’ with it, sharing the insights discovered along the way, plus some new ideas about how vignettes might evolve.</p>
<p>If you’re new to vignettes, at this point you may be asking “How does one go about making one? What tools are required? How do I include one in my package?”, and I’m glad you asked. Over the next few months I’ll be blogging about vignettes; how they’re currently used, how they might be more useful, and how we might be able to get people to use them more. I’m also scheduled to present the eventual conclusion of this project at <a rel="nofollow" href="https://user2018.r-project.org/" target="_blank">userR 2018</a>, so I’d better get it done!</p>
<p>For now, stay tuned!</p>
<p>P.S. for those interested in a very old-school jam:</p>
<p><iframe width="450" allowfullscreen src="https://www.youtube.com/embed/425GpjTSlS4?rel=0"></iframe></p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://jcarroll.com.au/2018/03/06/jc-and-the-vignettes/"> R – Irregularly Scheduled Programming</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/lCFGJgKaCuI" height="1"></a></div>