{
  "title": "My partner recently told me he wants to learn R. So this year he's getting a 25-day R tutorial advent calendar! Each day is a new bit of code teaching the basics in R. I'm pretty excited to send it to him this weekend 😊💕🎁🎄 #Rstats #Rstudio #AdventCalendar",
  "date": "2019-11-27"
}

# #rstats

> **Kiirsti Owen** (@KiirstiO; 1679/101): My partner recently told me he wants to learn R. So this year he's getting a 25-day R tutorial advent calendar! Each day is a new bit of code teaching the basics in R. I'm pretty excited to send it to him this weekend 😊💕🎁🎄
> >
> #Rstats #Rstudio #AdventCalendar  [&#8618;](https://twitter.com/xieyihui/status/1199383475046027268)

<!-- -->


> **Hadley Wickham** (@hadleywickham; 356/29): The laptop sticker game is strong in Australia! Featuring the laptops of @visnut, @nj_tierney, @earowang, and @statsgen #rstats https://t.co/L2VtYFBqqn  [&#8618;](https://twitter.com/xieyihui/status/1199519507515105280)

<!-- -->


> **Tyler Morgan-Wall** (@tylermorganwall; 246/38): 🤦‍♂️"... No, I told you to use R to run a 𝙏𝙪𝙠𝙚𝙮'𝙨 test."
> >
> #rstats #rayrender
> >
> (Happy Thanksgiving this week!) https://t.co/MNFbT1fvkr  [&#8618;](https://twitter.com/xieyihui/status/1198959823162953728)

<!-- -->


> **Emma Vogel** (@efvogel; 241/47): First attempt of using #moveVis to show move persistence of #KillerWhales tagged last year! Still have to make  adjustments, but it's an exciting start. #AnimalMovement #rstats https://t.co/lztQdNmToC  [&#8618;](https://twitter.com/xieyihui/status/1199044634242113542)

<!-- -->


> **One R Tip a Day** (@RLangTip; 179/89): The R Graphics Cookbook by @winston_chang, now available free online https://t.co/sWsmfqG1v4 #rstats  [&#8618;](https://twitter.com/xieyihui/status/1199402442556764161)

<!-- -->


> **Mara Averick** (@dataandme; 173/35): 👨‍💻 Nice break-down of how @tjmahr made this combo viz!
> 📊 "Another mixed effects model visualization" 
> https://t.co/YQYICShBXH #rstats #dataviz https://t.co/IRpvLyU8r8  [&#8618;](https://twitter.com/xieyihui/status/1199387855564550145)

<!-- -->


# blogdown

> **Steven Ge** (@StevenXGe; 39/11): What? Shiny Apps can be converted into desktop applications? 
> The R community keeps inventing/developing new things, way beyond a simple statistical computing language. 
> Shiny, Markdown, Blogdown, bookdown ... ...
> What's next? https://t.co/3zPEc9anzY  [&#8618;](https://twitter.com/xieyihui/status/1198294824924909575)

<!-- -->


> **Daniel** (@dthroelfs; 21/2): Recreated my blog from scratch using Rmarkdown and the blogdown package. Connected everything through GitHub and Netlify. Thanks for the inspiration @dsquintana! https://t.co/Y9LAcAKBQ9  [&#8618;](https://twitter.com/xieyihui/status/1198711371602550785)

<!-- -->


> **Hadley Wickham** (@hadleywickham; 8/1): @mshieldsdunn blogdown!  [&#8618;](https://twitter.com/xieyihui/status/1198235119250804736)

<!-- -->


> **Andrew MacDonald 🌈** (@polesasunder; 5/1): I seem to recall there being a #blogdown or hugo way of creating a draft of a paper? like the hugo page looked like an article, with a table of contents etc. Is that just a dream? did that happen #rstats  [&#8618;](https://twitter.com/xieyihui/status/1199393112105398272)

<!-- -->


> **R Users Leeds** (@r_users_leeds; 5/1): Do you know https://t.co/3Gt4b455ev? It helps R users to run blogs, create webs, books, and more. Our very own https://t.co/HOALrfESrG is made from a template that you too can use. So is https://t.co/xf9R2w5YIS and many more R books!  [&#8618;](https://twitter.com/xieyihui/status/1199311844852277249)

<!-- -->


> **Gillian P. McHugo** (@GillianMcHugo; 4/0): @Lycaonpictus93 @_sam_williams_ @NikiRust @FattebertJ @dsquintana I also used blogdown (https://t.co/2WhcuYNYnr) and would be happy to help! I'm planning to do a session for @UCD_CodeClub about personal websites in January  [&#8618;](https://twitter.com/xieyihui/status/1198314831683735552)

<!-- -->


> **Sam Williams** (@_sam_williams_; 4/0): @Lycaonpictus93 I like @NikiRust's (https://t.co/j0hc5vvdkg) and @FattebertJ's (https://t.co/lXMT0ynWbx) websites. I had a stab at making one (https://t.co/j8rBbA89dy) using the blogdown package in R, following @dsquintana's guide https://t.co/DdXogHC6FX. Good luck!  [&#8618;](https://twitter.com/xieyihui/status/1197808204211724288)

<!-- -->


> **Ming Tang** (@tangming2005; 3/2): make your blogdown page  support latex rendering https://t.co/2ZXHqb03wJ  [&#8618;](https://twitter.com/xieyihui/status/1197204263409029122)

<!-- -->


> **Giovanni Pavolini** (@gpavolini; 1/1): Big thanks again to @xieyihui for #blogdown. Today I'm working on https://t.co/HYNvKF8MT9 and with a little tweaks explained in https://t.co/5R3Yj4nsPj I was able to make it work. #rstats  [&#8618;](https://twitter.com/xieyihui/status/1199645927348297728)

<!-- -->


> **boB Rudis** (@hrbrmstr; 1/1): @mvarmazis @gepeto42 {blogdown} #rstats (which is, ultimately, hugo)  [&#8618;](https://twitter.com/xieyihui/status/1197665347131904000)

<!-- -->


> **Holly English** (@Lycaonpictus93; 1/0): @_sam_williams_ @NikiRust @FattebertJ @dsquintana These all look great, thanks so much Sam! Very tempted by the blogdown approach actually...  [&#8618;](https://twitter.com/xieyihui/status/1197947907183431680)

<!-- -->


> **NotQuiteDocManny** (@TheMainManManny; 1/0): @Lycaonpictus93 @rhskraus I made mine (https://t.co/z1cZgcQJrU) using #blogdown in R. It's really easy to use, and you can customize it as much or as little as you want!  [&#8618;](https://twitter.com/xieyihui/status/1199320602064109569)

<!-- -->


> **Danielle Navarro** (@djnavarro; 1/0): @nicoleradziwill Me: haha yeah!
> >
> Also me: I'll just write this two page website with blogdown 😳  [&#8618;](https://twitter.com/xieyihui/status/1197923520467988480)

<!-- -->


> **Michael McCarthy** (@mccarthy_m_g; 1/0): @joyrevisited @hadleywickham “Hands-On Programming with R” and “R for Data Science” are very good intros (esp. w/ tidyverse and %&gt;% making code easier to understand/write). Learning skills to accomplish *specific* tasks, and having things to look forward to (e.g., using blogdown, papaja, Shiny) also helps.  [&#8618;](https://twitter.com/xieyihui/status/1197575885999636480)

<!-- -->


> **Ihaddaden 🐼🍗🍳** (@IhaddadenFodil; 1/0): @xieyihui @xieyihui thank you very much 🙏🙏🙏 !!! BTW: thank you for all your amazing packages, especially Blogdown !  [&#8618;](https://twitter.com/xieyihui/status/1197233185416982528)

<!-- -->


# bookdown

> **boB Rudis** (@hrbrmstr; 75/8): The plan is still to crank out an #rstats {bookdown} book of the combined #30DayMapChallenge creations on Sunday with more annotated code + explanations of why I chose each topic along with why I coded them the way I did to help provide context for folks (esp those new to GIS).  [&#8618;](https://twitter.com/xieyihui/status/1198958441433354244)

<!-- -->


> **Colin Fay 🤘** (@_ColinFay; 46/0): I'm giving an internal training on JavaScript tomorrow, and writing everything in Bookdown with the {bubble} knitr-engine is quite handy: https://t.co/nNl5zu7OBm  [&#8618;](https://twitter.com/xieyihui/status/1197468144283062272)

<!-- -->


> **R-Ladies London** (@RLadiesLondon; 27/4): Thanks for bringing 3 copies of your latest book "Feature engineering and selection" for our luck winners, @topepos! 🙌
> >
> For anyone interested, the online version of the book can be found at
> 🔗 https://t.co/bVX2ieUUdN
> >
> #rstats #rladies https://t.co/K918sDeOCS  [&#8618;](https://twitter.com/xieyihui/status/1197493247255429120)

<!-- -->


> **Laura Ación** (@_lacion_; 6/1): Acceso gratis a "Feature Engineering and Selection: A Practical Approach for Predictive Models" el último libro de @topepos 📘📗📕 (Thank you, Max Kuhn!)
> >
> 🔗https://t.co/wCPzAjeJrC https://t.co/PnVyquwBEr  [&#8618;](https://twitter.com/xieyihui/status/1197496107103854593)

<!-- -->


> **Recle Etino Vibal** (@recleev; 5/3): #RLessonOfTheDay use nocite metadata to cite references without mentioning them in the text body #rstats #rmarkdown #bookdown #pandoc  [&#8618;](https://twitter.com/xieyihui/status/1199142778405392384)

<!-- -->


> **Deirdre Toher** (@dtoher; 4/1): Once again I tip my hat to the incredible #rstats community. In particular the superb work of @xieyihui 
> While others around me are trying to turn their LaTeX notes into accessible ones, mine, produced using bookdown, have passed the checks with flying colours  [&#8618;](https://twitter.com/xieyihui/status/1197242785243553792)

<!-- -->


> **SethGitter** (@SethGitter; 3/1): @EpiEllie I used Modern Dive free online book (https://t.co/oRmaK7GoaF) I am a Stata user though I think a novice could do it too
> Also for amusement can't do better than YaRR a pirate's guide to R, covers a lot of the same material
> https://t.co/KBTo4nbKUp  [&#8618;](https://twitter.com/xieyihui/status/1197603068130541568)

<!-- -->


> **Yihui Xie** (@xieyihui; 3/1): @IhaddadenFodil Documentation here: https://t.co/mReUb8Ybml or https://t.co/IQ8u2zsGbm or https://t.co/LxLj3qpxWB  [&#8618;](https://twitter.com/xieyihui/status/1197232264540758021)

<!-- -->


> **Willy Tadema** (@FrieseWoudloper; 3/0): Vandaag ga ik proberen om #bookdown onder de knie te krijgen. De boeken en artikelen die met dit R package gemaakt zijn, zien er goed uit! https://t.co/41iflhsTe2  [&#8618;](https://twitter.com/xieyihui/status/1197816531725541376)

<!-- -->


> **Robert M Flight** (@rmflight; 2/2): @adamhsparks @AvrahamAdler I'm also wondering how many of the popular guides to learning R (r4ds, yihui bookdown guide, swirl, to name a couple of popular ones) mention citation() and give examples of use??  [&#8618;](https://twitter.com/xieyihui/status/1199537561166909441)

<!-- -->


> **Mathieu Saby** (@27point7; 2/0): Avis aux amateurs : pour construire un livre interactif avec R Bookdown il faut (aujourd'hui) compiler les sources depuis github pour corriger un vieux bug de prise en compte des accents dans la table des matières  [&#8618;](https://twitter.com/xieyihui/status/1198858265607770112)

<!-- -->


> **Deirdre Toher** (@dtoher; 1/2): Hmm, #rstats community.  Does anyone have good tips for converting existing .tex files to .rmd files?
> Trying to come up with a way of creating more #accessible versions of existing material. #bookdown does a great job, but still requires some major manual editing (labels etc)  [&#8618;](https://twitter.com/xieyihui/status/1197507190044667905)

<!-- -->


> **CRAN Package Updates** (@CRANberriesFeed; 1/1): CRAN updates: bookdown glancedata patternplot https://t.co/y5W2NTKSXT #rstats  [&#8618;](https://twitter.com/xieyihui/status/1198028941153505281)

<!-- -->


> **Robert M Flight** (@rmflight; 1/0): @dynamic_choice xaringan all the way. Code, awesome graphs, and all the flexibility of HTML / CSS, and print to PDF if you won't have a browser ...
> >
> https://t.co/Fa1IjZek9j  [&#8618;](https://twitter.com/xieyihui/status/1199427108449112065)

<!-- -->


> **Jasleen Grewal** (@jasleen_grewal; 1/0): @pathogenomenick Bookdown is a savior, and integrates nicely with rmarkdowns #LatexThesis  [&#8618;](https://twitter.com/xieyihui/status/1199402724791447552)

<!-- -->


> **David Keyes** (@dgkeyes; 1/0): @RebantMalhotra Yes, definitely! I'm working on making it a full-fledged book (aka bookdown). This is just the first step. I'll post on Twitter as I make progress.  [&#8618;](https://twitter.com/xieyihui/status/1199048797331972096)

<!-- -->


> **Mathieu Saby** (@27point7; 1/0): J'ai mis 1 journée à comprendre le problème et pile quand j'allais faire un ticket je réalise qu'il y en avait déjà un et qu'il venait d'être résolu...
> https://t.co/DGLXKeFOuO  [&#8618;](https://twitter.com/xieyihui/status/1198858809130864640)

<!-- -->


> **Gjalt-Jorn Peters** (@matherion; 1/0): @MelissaGWolf @redskiouros @DanK_atz Yeah, great idea! Bookdown can also work well - our set-up is a bit less linear, but also uses a markdown back-end, so we can even have multiple versions. Let's mutually follow and DM etc 🙂  [&#8618;](https://twitter.com/xieyihui/status/1197942542265933824)

<!-- -->


> **Melissa Gordon Wolf** (@MelissaGWolf; 1/0): @matherion @redskiouros Yes! Let's chat. @DanK_atz and I were just discussing creating a bookdown (instead of just posting labs, ha). Maybe Skype?  [&#8618;](https://twitter.com/xieyihui/status/1197912550655942658)

<!-- -->


> **Deirdre Toher** (@dtoher; 1/0): @noamross That does some of the very heavy lifting, still have to work on labelling and cross references (for bookdown), but this should really help colleagues get started.
> >
> Thanks!  [&#8618;](https://twitter.com/xieyihui/status/1197564729314697219)

<!-- -->


> **Irene** (@irenecrisologo; 1/0): @Shobenase I am working on it! I prepared a bookdown version, I am just waiting for a go signal from our Uni library to post it publicly.  [&#8618;](https://twitter.com/xieyihui/status/1197529428684951552)

<!-- -->


> **Patrick Schratz** (@pjs_228; 0/2): #rstats: Does anyone know how I can get HDPI images into bookdown? Images look fine on lap screen but horrible on a projector. Fonts are scaling but imgs do not, even though they are HDPI and I’ve set the chunk option accordingly.  [&#8618;](https://twitter.com/xieyihui/status/1197622030230851584)

<!-- -->


> **Jacques** (@jacquesdp; 0/1): Free online eBook, "Techincal Analysis with R" by Ko Chiu Yu. I'm constantly surprised at the quality free content available online 😎 https://t.co/pajiupDQht #rstats #trading #investing  [&#8618;](https://twitter.com/xieyihui/status/1199702730958393345)

<!-- -->


> **tidyverse tweets** (@tidyversetweets; 0/1): bookdown install failed #tidyverse #rstats https://t.co/w5uLNw7fkv  [&#8618;](https://twitter.com/xieyihui/status/1199091705284300801)

<!-- -->


# knitr

> **Mine CetinkayaRundel** (@minebocek; 112/6): Even if one day I could turn off a ggplot2 legend without googling, I don't think I will ever be able to knitr::opts_chunk$set() without googling.
> >
> *If you're thinking "Just write an addin, Mine!", yes, you're right.  [&#8618;](https://twitter.com/xieyihui/status/1199474171245473792)

<!-- -->


> **Colin Fay 🤘** (@_ColinFay; 4/1): @dreznik {bubble} is an R package to launch and interact with a NodeJS session, and it notably includes a knitr engine that allows you to create NodeJS notebooks from R 
> https://t.co/ncDTioWktz  [&#8618;](https://twitter.com/xieyihui/status/1197488153000579077)

<!-- -->


> **Stats for bios** (@StatsForBios; 4/0): Ah, error = TRUE in knitr does what I wanted without me defining the hook myself.
> >
> In context, if you have a fragile vignette. You can do error = T and purl = F to stop CRAN trying to run the code and getting cross with you. https://t.co/b5QQYCPrmV  [&#8618;](https://twitter.com/xieyihui/status/1199003352899760128)

<!-- -->


> **Mine CetinkayaRundel** (@minebocek; 3/0): @renatagerecke Global chunk options: https://t.co/fQ4C9QKIsy. Very handy!  [&#8618;](https://twitter.com/xieyihui/status/1199476043167481856)

<!-- -->


> **Heather Turner** (@HeathrTurnr; 2/1): Some good tips in this thread for those hard-to-remember knitr/ggplot tricks! https://t.co/79nLOPbbvW  [&#8618;](https://twitter.com/xieyihui/status/1199586133425999873)

<!-- -->


> **Mike K Smith** (@MikeKSmith; 1/0): @minebocek - A propos .Rmd to reprex. 
> >
> Workaround: knitr::purl("reprexFile.Rmd, documentation=2) %&gt;% reprex::reprex(input = .)  [&#8618;](https://twitter.com/xieyihui/status/1199651131493900288)

<!-- -->


> **Joe Cheng** (@jcheng; 1/0): @mwark89 It’s because objects returned by HTML() have a class that implements the knit_print S3 generic. See https://t.co/29eQxrreNB  [&#8618;](https://twitter.com/xieyihui/status/1199005026162638849)

<!-- -->


> **Stats for bios** (@StatsForBios; 1/0): @danmaclean Yes, thank you. But tryCatch goes
> >
> tryCatch({
>   frailCode()
> }) 
> >
> which then doesn't fit into the knitr chunk hook thing.
> >
> This is plan B. But to keep the vignette tidy I'd probably tryCatch with eval = T, echo = F and then eval = F, echo = T with no tryCatch.  [&#8618;](https://twitter.com/xieyihui/status/1198924349568356352)

<!-- -->


> **Ramnath Vaidyanathan** (@ramnath_vaidya; 1/0): @xieyihui  The SQL engine is great! I was looking to extend it to return tbl_lazy but ran into roadblocks. The detailed issue is here https://t.co/urn7VMUJoW. Any pointers would be much appreciated.  [&#8618;](https://twitter.com/xieyihui/status/1198314221538336768)

<!-- -->


# tinytex

> **Yisu Zhou** (@makzhou; 0/1): Upgraded tinytex and other dependencies, suddenly this doesn't work: https://t.co/vUsjAWMArA Hope the v2.8 come soon.  [&#8618;](https://twitter.com/xieyihui/status/1197759215260954625)

<!-- -->


# xaringan

> **Michael DeCrescenzo** (@mikedecr; 16/0): I did a whole high-stakes presentation with xaringan with zero(!) bugs in the way the lots-of-math rendered from the online mathjax CDN so I think I deserve that job offer, yeah?  [&#8618;](https://twitter.com/xieyihui/status/1199339154779205632)

<!-- -->


> **Malcolm Barrett (AFK)** (@malco_barrett; 6/0): @RobKnell1 @hadleywickham Yup! This is my xaringan theme, kakashi, which you can find here: https://t.co/gFBDUUshbU  [&#8618;](https://twitter.com/xieyihui/status/1198638039825711104)

<!-- -->


> **Sam Abbott** (@seabbs; 5/4): Fantastic talk/workshop slides from @malco_barrett on designing #ggplot2 #rstats plots. Covers {cowplot}, {gghighlight}, {patchwork} and much more + what a sweet #xaringan theme. 
> >
> https://t.co/IapgbTd5Tn
> >
> Excited to use some of the tips in #getTBinR - particularly highlighting. https://t.co/rTvVlJ8OMN  [&#8618;](https://twitter.com/xieyihui/status/1199671238563704833)

<!-- -->


> **Andrea Cirillo** (@AndreaCirilloAC; 3/3): I thought about it two days ago and it is already out, thanks to #xaringan and @xieyihui : introducing the paletteR gallery.
> Thank you @neilfws @asincopado @Arfness @jmtoralc for providing your masterpieces 😁.
> >
> Visit it here: https://t.co/nYINUrehtl
> #rstats https://t.co/T5uR6YUw42  [&#8618;](https://twitter.com/xieyihui/status/1199446897989234690)

<!-- -->


> **Roxana Noelia** (@data_datum; 2/2): xaringan Tip: Add A Logo to All of Your Slides · Garrick Aden-Buie https://t.co/qn0KGDYSLY  [&#8618;](https://twitter.com/xieyihui/status/1198814338255085568)

<!-- -->


> **J. Colomb, @pen** (@j_colomb; 2/0): @juancommander you could do your slides in rmarkdown (xaringan!) and have it all text and links :)
> >
> Otherwise, there is probably a way to automatize image inserts of the pdf slides using Rmagick and Rmarkdown.  [&#8618;](https://twitter.com/xieyihui/status/1199352622794387459)

<!-- -->


> **Otho** (@othomn; 1/0): Xaringan: https://t.co/1exwEiT6CJ
> >
> apply-reveal flipbooks: https://t.co/0Nr6x5FawV  [&#8618;](https://twitter.com/xieyihui/status/1197263007501496320)

<!-- -->


> **Otho** (@othomn; 1/0): Slides done with Xaringan 🌌🚀 
> >
> https://t.co/sSsBSjIdWu
> >
> using the apply-reveal script to progressively evaluate dplyr pipes and ggplot2 viz 🌈  [&#8618;](https://twitter.com/xieyihui/status/1197260748831043584)

<!-- -->


# yihui.name

> **Lefkios Paikousis** (@lefkiospaik; 2/1): @dvisger @theRcast @rstudio @_pvictorr @_mfaan @xieyihui Here are the slides https://t.co/EH4YhQaFIX . great stuff!  [&#8618;](https://twitter.com/xieyihui/status/1197894255429275649)

<!-- -->


> **Yihui Xie** (@xieyihui; 2/0): @biochemnerd @DevOps_Kitties Nice job! (BTW, sorry for nitpicking, but the links on these two lines are incorrect: https://t.co/3CzUa7grmX you need the https protocols, otherwise they are broken links; more on this: https://t.co/7iAJXZBQmq)  [&#8618;](https://twitter.com/xieyihui/status/1197198683537903616)

<!-- -->


