{
  "title": "#rstats protip: lots of #leaflet maps will slow down #bookdown website builds (due to #pandoc), but you can avoid this by saving each map in a separate html file (htmlwidgets::saveWidget) and embedding them with iframes. You can also share lib dirs to reduce size.",
  "date": "2019-04-10"
}

# blogdown

> **Solomon Kurz** (@SolomonKurz; 21/8): Love R and like to blog? Combine both your loves with #blogdown. This blog by @Andreasheenn can show you how. Plus, she even linked to an earlier blog on the topic by @djnavarro. 
> >
> If only I’d had both of these when I was learning #blogdown… https://t.co/iXIW4zptrS  [&#8618;](https://twitter.com/xieyihui/status/1113572036696260610)

<!-- -->


> **Alison Hill** (@apreshill; 11/4): Today's "learning out loud" success story, featuring #rstats #blogdown, GitHub, Netlify, and most importantly @allison_horst (the al[l]isons have finally met and are busy at work) 👯‍♀️ https://t.co/uT9zwjSbDZ  [&#8618;](https://twitter.com/xieyihui/status/1115742357670907904)

<!-- -->


> **Alison Hill** (@apreshill; 11/0): @jent103 @dgkeyes I think many of @xieyihui’s rmarkdown based tools have enabled better platforms for communicating too. Like my talk called “take a sad plot and make it better” was delivered to approximately 20 people on a Friday, but I put my xaringan slides online and on my blogdown site 📣  [&#8618;](https://twitter.com/xieyihui/status/1113590510629740544)

<!-- -->


> **Patricia Menéndez** (@PM_maths; 10/0): Creating my first webpage using blogdown 🥳!  [&#8618;](https://twitter.com/xieyihui/status/1115041032771489794)

<!-- -->


> **Christin Zasada** (@ChristinZasada; 9/2): A very personal invitation to our next #RLadies Berlin meetup about the essentials of #rstats📦 xaringan, bookdown and blogdown. 
> https://t.co/44uuGJCarQ  [&#8618;](https://twitter.com/xieyihui/status/1114787285835366400)

<!-- -->


> **Bea.** (@Chucheria; 7/1): Today I learned: when you write a future date in a blogdown post it won't be build until the date is no longer future!!! I've been like 3 hours with this one. #blogdown #rstats  [&#8618;](https://twitter.com/xieyihui/status/1115925747502342144)

<!-- -->


> **Allison Horst** (@allison_horst; 7/0): @apreshill I made a short list of things you need to get smoothly started with #blogdown and it starts &amp; ends with @apreshill. Also most of the middle.  [&#8618;](https://twitter.com/xieyihui/status/1115747611892277249)

<!-- -->


> **ComunidadBioInfo** (@CDSBMexico; 5/1): The new website is powered by @GeorgeCushen's hugo-academic theme and converted from Wordpress using @xieyihui's scripts.
> >
> Web source at @Github: https://t.co/VQ0Fivw4yr
> >
> Thanks to:
> https://t.co/i603dD2igi
> https://t.co/PTf7JMW53L
> >
> @GoHugoIO #blogdown  [&#8618;](https://twitter.com/xieyihui/status/1114005075117203456)

<!-- -->


> **Cedric Batailler** (@cedricbatailler; 5/0): @metasdl @LorneJCampbell Amazing! Will it also be implemented as a template for systems à la blogdown?  [&#8618;](https://twitter.com/xieyihui/status/1114879760788856833)

<!-- -->


> **Alison Hill** (@apreshill; 4/0): @tladeras @sharlagelfand BUT EVEN THEN! I see so many bookdown/blogdown/distill/xaringan/flexdashboard sites trapped in GitHub repos!! Argh ok blogpost needed ;)  [&#8618;](https://twitter.com/xieyihui/status/1114264715402702848)

<!-- -->


> **Alli N. Cramer** (@AlliNCramer; 3/1): Ok #rstats people, I need some help. I'm trying to update my Hugo #Academic site which I make using #blogdown. I know there are some new version issues, so I am rebuilding it from scratch. I've updated everything, and have moved the config.toml file, but it won't build. #help  [&#8618;](https://twitter.com/xieyihui/status/1114262944265555968)

<!-- -->


> **Alison Hill** (@apreshill; 2/0): @fellgernon @GoHugoIO @georgecushen @rstudio https://t.co/C8M9jqzbD4  [&#8618;](https://twitter.com/xieyihui/status/1114184170866012162)

<!-- -->


> **Kat Hoffman** (@kat_stats; 2/0): Working on a personal website and good news is, Academic Hugo template makes the process pretty easy. Bad news is blogdown::serve_site() freezes my Rstudio so I’ve been making edits directly in Github [yikes]  [&#8618;](https://twitter.com/xieyihui/status/1113626800423362560)

<!-- -->


> **🇲🇽 Dr. Leonardo Collado-Torres** (@fellgernon; 1/1): Has anyone been using the latest @GoHugoIO academic theme by @georgecushen with #blogdown? The default config.toml location changed to root/config/_default/ which messes up blogdown:::site_root(). See the post at the @rstudio community for more https://t.co/36JvUAF4UM #rstats Thx  [&#8618;](https://twitter.com/xieyihui/status/1114180968217112576)

<!-- -->


> **Steven Senior** (@stevensenior; 1/0): @northernjamie I love it because I am lazy, and I can just press a button in RStudio and up it goes. I’m resisting the peer pressure to join the cool kids and start using blogdown because that sounds like a lot of work.  [&#8618;](https://twitter.com/xieyihui/status/1115970660415754241)

<!-- -->


> **Alison Hill** (@apreshill; 1/0): @fellgernon @GoHugoIO @georgecushen @rstudio Huh weird- I'm able to use the new post addin with multiple themes with this new configuration. But what I see that happens is blogdown physically moves the config.toml to the root dir- the other config files stay in the that dir (params/menus)- do you see that happening?  [&#8618;](https://twitter.com/xieyihui/status/1114206546953625605)

<!-- -->


> **Houston Haynes** (@whiskersedge; 1/0): @dataandme @jbkunst My current challenge is responsive design. I'm using a blogdown/Hugo template that has SementicUI embedded. So far, I've only found that wrapping the highchartr in an HTMLwidget allows you to bound it with markup that creates the desired behavior.  [&#8618;](https://twitter.com/xieyihui/status/1115642850933239808)

<!-- -->


> **David O'Sullivan** (@geodosu; 1/0): @alogicalfallacy @surlyurbanist there's also a thing called blogdown which I think it good for this specific use case? https://t.co/FmZxB4xmv9  [&#8618;](https://twitter.com/xieyihui/status/1115425499495321601)

<!-- -->


> **🇲🇽 Dr. Leonardo Collado-Torres** (@fellgernon; 1/0): @apreshill @GoHugoIO @georgecushen @rstudio Ok, I see that the commit you pointed to https://t.co/o24UdNldDi changed the code of install_theme() such that it moves the config.toml to the root folder https://t.co/T0DpMSadG5 
> >
> I didn't use install_theme() hence why I'm seeing the issue.  [&#8618;](https://twitter.com/xieyihui/status/1114207711279886337)

<!-- -->


> **Josep Espasa** (@Josepespasa; 1/0): @almata El faig anar cada dia a la feina! És el meu software estadístic preferit. De fet, vaig començar un blog amb R Blogdown i tot https://t.co/SpLXw2eZ4k  [&#8618;](https://twitter.com/xieyihui/status/1114156065380347904)

<!-- -->


> **BFF** (@YrBFFAnna; 1/0): Hey DS twitter:
> I need to build a blog/portfolio site. Currently use #r4ds &amp; #tableau, #pydata later. Is there a thing like blogdown(?) that supports/integrate all these things and also isn’t wicked complicated?  I’m not about to be a dev anytime soon.  [&#8618;](https://twitter.com/xieyihui/status/1113539324602134528)

<!-- -->


> **Peter Sobolewski** (@psobolewskiPhD; 0/1): Wow, this #rstats package to make posters using #markdown looks pretty sweet. Making posters is such a chore, but this doesn't look bad at all. Making a website using #blogdown and @rstudio was easy, so definitely going to check this out! https://t.co/n5U4iDle5g  [&#8618;](https://twitter.com/xieyihui/status/1115251680642326529)

<!-- -->


> **Jamie Whyte** (@northernjamie; 0/0): @stevensenior Oof, that does seem like a lot of effort! I might try RPubs for now, and move to blogdown if it doesn't satisfy me.  [&#8618;](https://twitter.com/xieyihui/status/1115975373567811584)

<!-- -->


> **Sylvain Chabé-Ferret** (@SylvainCF; 0/0): @romain_esteve @Wikipedia Only Rmarkdown. This is simple and effective. I tried blogdown to move it to HTML5 with Hugo, but it’s much too technical to be scalable.  [&#8618;](https://twitter.com/xieyihui/status/1115921031397556225)

<!-- -->


> **Alison Hill** (@apreshill; 0/0): @fellgernon @GoHugoIO @georgecushen @rstudio This was already fixed in the dev version of blogdown about a day after the academic theme changed :)  [&#8618;](https://twitter.com/xieyihui/status/1114183962920808449)

<!-- -->


> **Umair Durrani** (@umairdurrani87; 0/0): @asiflaldin Hey, thanks for getting in touch. Just to be sure, have you made the commits and THEN pushed the files to GitHub? Or the other way round? My video is pretty old now, since then blogdown package has been used extensively to create websites. Try that: https://t.co/RNygw4Caaq  [&#8618;](https://twitter.com/xieyihui/status/1115669124993245184)

<!-- -->


> **Alexander Miniushkin** (@AMiniushkin; 0/0): Speeding up R blogdown with Nginx
> - 1000x times https://t.co/kovXCUBavt  [&#8618;](https://twitter.com/xieyihui/status/1115596823136047104)

<!-- -->


> **Sabhrina Aninta** (@sagitaninta; 0/0): This is not a question but more of a comment: apparently I could never use the install_ function within the packages that @xieyihui made if the packages were installed from CRAN.
> >
> I did tinytex::install_tinytex() and failed.
> I did blogdown::install_hugo() to no avail.  [&#8618;](https://twitter.com/xieyihui/status/1114867811598266369)

<!-- -->


> **Albert Mata** (@almata; 0/0): @Josepespasa El vaig veure, sí. Ara, el tens una mica aparcadot, eh... 😅 Jo ara he començat un nou projecte també amb R Blogdown a https://t.co/2KZYv0etmX.  [&#8618;](https://twitter.com/xieyihui/status/1114224700480196608)

<!-- -->


> **🇲🇽 Dr. Leonardo Collado-Torres** (@fellgernon; 0/0): @apreshill @GoHugoIO @georgecushen @rstudio Hmm... I did use the latest version of blogdown from GitHub. I’ll check again after lunch. Thanks Alison!  [&#8618;](https://twitter.com/xieyihui/status/1114197236362117121)

<!-- -->


> **🇲🇽 Dr. Leonardo Collado-Torres** (@fellgernon; 0/0): @apreshill @GoHugoIO @georgecushen @rstudio Yeah, I do have the latest version and I'm still seeing this error :/
> >
> &gt; devtools::install_github('rstudio/blogdown')
> Skipping install of 'blogdown' from a github remote, the SHA1 (5179caff) has not changed since last install.
>   Use `force = TRUE` to force installation https://t.co/FpR2FPoDVT  [&#8618;](https://twitter.com/xieyihui/status/1114205736731652096)

<!-- -->


> **Boom Shakalaka** (@moxiaoranying; 0/0): @nacnudus Or just use blogdown  [&#8618;](https://twitter.com/xieyihui/status/1113511487916654592)

<!-- -->


# bookdown

> **Jeff Hanson** (@jeff_o_hanson; 94/19): #rstats protip: lots of #leaflet maps will slow down #bookdown website builds (due to #pandoc), but you can avoid this by saving each map in a separate html file (htmlwidgets::saveWidget) and embedding them with iframes. You can also share lib dirs to reduce size.  [&#8618;](https://twitter.com/xieyihui/status/1115530369611309056)

<!-- -->


> **scott cunningham** (@causalinf; 31/6): This is a major tweet that could easily get lost in the cracks.  It's like a methodological wikipedia using GitHub and R Bookdown.  Collaborative, open.  Unbelievably ambitious.  I had no idea @SylvainCF was working on something like this and I'm kind of blown away. Read thread. https://t.co/LsTOHqoIaK  [&#8618;](https://twitter.com/xieyihui/status/1115642640693960704)

<!-- -->


> **scott cunningham** (@causalinf; 9/2): The ability to participate in SKY (the open source science community collection of knowledge for social science methodology that @SylvainCF has created out of thin air) will depend on learning some basic things regarding Git and R Bookdown. We can all use it as a chance to learn! https://t.co/c402JiDebp  [&#8618;](https://twitter.com/xieyihui/status/1115651851461058561)

<!-- -->


> **Mine CetinkayaRundel** (@minebocek; 8/0): @dataandme I suppose just today I told a student to just close out of RStudio and relaunch the project again to get bookdown to cooperate, so perhaps not too different 😀  [&#8618;](https://twitter.com/xieyihui/status/1115764138830123010)

<!-- -->


> **Sylvain Chabé-Ferret** (@SylvainCF; 5/1): @causalinf Contributing to the open book on causal inference requires Bookdown, a tiny step further. 
> >
> @xieyihui book does the trick https://t.co/NvjRa5dcSx
> >
> He also has a Rmarkdown book just in case: https://t.co/WeYiHfv29t  [&#8618;](https://twitter.com/xieyihui/status/1115656177927561218)

<!-- -->


> **Nick HK** (@nickchk; 5/1): @causalinf @SylvainCF Yeah I can definitely imagine contributing to this but my last attempt to get bookdown to work was a failure. If there's a style/structure guide in mind that would be good to know about too before getting started.  [&#8618;](https://twitter.com/xieyihui/status/1115644622917660672)

<!-- -->


> **Daniel Possenriede** (@dpprdan; 5/1): @livingwithdata @7th__kevin @rstatstweet @tyleransom @FlorianOswald @vincentviers @nickchk @maxkasy @jim_savage_ @brodriguesco More books:
> - https://t.co/kMY4Mg30ZH by Christian Kleiber &amp; @AchimZeileis
> - https://t.co/o7qLu6duBW by @CColonescu
> - https://t.co/pFv0E09tfL by Harry Kelejian &amp; Gianfranco Piras
> - https://t.co/L6UAPUPRlR by Yves Croissant &amp; Giovanni Millo  [&#8618;](https://twitter.com/xieyihui/status/1115157017495257088)

<!-- -->


> **Nicholas Tierney** (@nj_tierney; 5/0): @dataandme @heatherklus No, I will self publish it as a bookdown book, hopefully can include learnr questions in there as well.
> >
> Current working titles are "Tidy Missing Data Analysis" or "The Tidy Book of Missing Data"!  [&#8618;](https://twitter.com/xieyihui/status/1115753509050171394)

<!-- -->


> **Ajay Koli** (@ajay__koli; 3/1): #rstats Which R package is better for writing book, pagedown or bookdown? @xieyihui . I used bookdown earlier for my PhD thesis. But pagedown output looks more beautiful.  [&#8618;](https://twitter.com/xieyihui/status/1114518578433220608)

<!-- -->


> **Eric Green** (@ericpgreen; 3/1): I like to give a shoutout to @rstudio and @xieyihui for the great #bookdown package that does most of the heavy lifting. I'm also a big fan of the #msmbstyle package by @grimbough (https://t.co/QIM8G08rur) that provides a nice #tufte-inspired look. #rstats  [&#8618;](https://twitter.com/xieyihui/status/1114251602716700672)

<!-- -->


> **Sylvain Chabé-Ferret** (@SylvainCF; 3/0): @nickchk @causalinf Yep, I’ve transited from Knitr to Markdown recently (the first to chapters of the book are actually in Knitr). Markdown has its peculiarities, but the book by @xieyihui is awesome https://t.co/NvjRa5dcSx
> >
> Still needs some tinkering esp in preamble, but already done by me ;)  [&#8618;](https://twitter.com/xieyihui/status/1115650325971644416)

<!-- -->


> **Jordan Frey** (@FreyGeospatial; 2/2): For proper R Markdown prettydoc usage, see https://t.co/9j30QP1nVj #rstats  [&#8618;](https://twitter.com/xieyihui/status/1115928808232837123)

<!-- -->


> **Ruben C. Arslan** (@rubenarslan; 2/0): @LisaDeBruine Oh please, I feel the same about you apparently having mastered bookdown. But yes, you would not regret brms!  [&#8618;](https://twitter.com/xieyihui/status/1115985755887820800)

<!-- -->


> **Antonio Falcón** (@FalcMart; 2/0): A useful online book: “R Markdown: The Definitive Guide“ by Yihui Xie, J. J. Allaire, Garrett Grolemund (@xieyihui , @fly_upside_down , @StatGarrett). This book has been published by Chapman &amp; Hall/CRC. The online version of this book is free to read here
> https://t.co/fEGmeP7NeG  [&#8618;](https://twitter.com/xieyihui/status/1114243281624424448)

<!-- -->


> **Yihui Xie** (@xieyihui; 2/0): @johnros2013 Convert them to footnotes for PDF: https://t.co/lRi5lWyTvz  [&#8618;](https://twitter.com/xieyihui/status/1113493139837390849)

<!-- -->


> **Karol** (@Karol_Flisik; 1/1): Do not use averages with Likert scale data https://t.co/ERpoEoG1i4  [&#8618;](https://twitter.com/xieyihui/status/1114771142940577794)

<!-- -->


> **Short Hills Design** (@ShortHillsD; 1/1): @gatsbyjs could gatsby be used to wrap authentication around a #gitbook generated from #bookdown? #rmarkdown #rstudio  [&#8618;](https://twitter.com/xieyihui/status/1114539063627984897)

<!-- -->


> **Gruffydd** (@boyacense; 1/1): Great example of the document format “R Markdown” --as "opposed" to "HT Markup L"? 🙂 first introduced in the knitr R package. Read "R Markdown: The Definitive Guide" here: https://t.co/DFVFbKxLix Also learn more here: https://t.co/sQjg6rJ60l @rstudio https://t.co/MyVfrkrSXr  [&#8618;](https://twitter.com/xieyihui/status/1114229670713622528)

<!-- -->


> **しばた** (@ooSHIBATAoo; 1/0): 授業用の補助資料として #jamovi 分析画面の簡易日本語解説を作成。
> なんとか授業開始に間に合った。
> >
> jamoviクイックガイド（Analysis編）
> https://t.co/iaAl0tpAyM  [&#8618;](https://twitter.com/xieyihui/status/1115489824796839936)

<!-- -->


> **SportSciData** (@SportSciData; 1/0): Experimenting with Bookdown package to produce multiple reports simultaneously. Looks interesting! Load Review Dashboards https://t.co/jtkzCn6N6t https://t.co/wcVmiBICjg  [&#8618;](https://twitter.com/xieyihui/status/1115266638746669057)

<!-- -->


> **Gustavo Rotondaro** (@grotondaro; 1/0): @djnavarro @R4DScommunity @BinxiePeterson Thanks! @satRday_ZAF these how-to presentations are extremely helpful. @BenjaminWolfe here are a couple of links you might find helpful too - https://t.co/qxsQziwyb3 and https://t.co/NjvUtR4TTo  [&#8618;](https://twitter.com/xieyihui/status/1114542600319643654)

<!-- -->


> **Short Hills Design** (@ShortHillsD; 1/0): Anyone have experience embedding #gitbook html generated from #bookdown into #wordpress? #rmarkdown  [&#8618;](https://twitter.com/xieyihui/status/1114537739519758338)

<!-- -->


> **Short Hills Design** (@ShortHillsD; 1/0): @reactjs I’d like to setup user registration/authentication for a static gitbook (html) that I generated from rmarkdown with bookdown.  Is it overkill to wrap it all in react just for this feature?  [&#8618;](https://twitter.com/xieyihui/status/1114224691848384512)

<!-- -->


> **Statisticians and Data Scientists** (@statsanddatasci; 0/3): 📚Libro Vivo de Ciencia de Datos - Pablo Casas👇
> #BOOKDOWN: https://t.co/dirQRBEEv2
> Más información: https://t.co/LfHyLFa8dE
> >
> #RStats #RStudio #Statistical #DataAnalysis #AnálisisDeDatos #DataScience #CienciaDeDatos #RStatsEs https://t.co/7vUQDMZeiG  [&#8618;](https://twitter.com/xieyihui/status/1113938920725786625)

<!-- -->


> **Jeff Hanson** (@jeff_o_hanson; 0/1): @jkregenstein I don't know sorry. I used this trick cos bookdown internally converts md files to html files using pandoc and this trick speeds up the conversion process. I don't think shiny does this so this trick might not make a difference, or if it does it would do so for different reasons?  [&#8618;](https://twitter.com/xieyihui/status/1115649970068180994)

<!-- -->


> **Jeff Hanson** (@jeff_o_hanson; 0/1): @jdatap @mdsumner @xieyihui To my knowledge, no, because the bottleneck is with pandoc converting md to html (or at least it was in my case) not with bookdown converting Rmd to md.  [&#8618;](https://twitter.com/xieyihui/status/1115541473968238592)

<!-- -->


> **Conor Mc** (@conormacd; 0/1): Applied causal analysis book(down) with #rstats covering many of the core concepts, frameworks and methodologies.
> >
> https://t.co/rlZ7CyRowr  [&#8618;](https://twitter.com/xieyihui/status/1113538106790166528)

<!-- -->


> **Joyce Robbins** (@jtrnyc; 0/0): @_rahulgopinath @CMastication @JennyBryan @hadleywickham @nixos_org I hear you. The flip side is too much VC for output, which is happening with my #bookdown repos. This shouldn't be a hard technical problem to solve...  [&#8618;](https://twitter.com/xieyihui/status/1115604601590304773)

<!-- -->


> **P. Lecharpentier** (@plecharpe; 0/0): @_ColinFay Would it be possible that you share codes for converting epub documents to bookdown format ? Thanks  [&#8618;](https://twitter.com/xieyihui/status/1114450022786043905)

<!-- -->


> **Eric Leung** (@erictleung; 0/0): @apreshill @tladeras @sharlagelfand I've been guilty of this. But I think the trick is to be judicious on what to add.
> >
> If you're writing about Travis to build things, @xieyihui's written a script to deploy to GitHub that you can point to as a start https://t.co/MiJJ0kQ21K
> >
> It's called here https://t.co/ubcVrfCYJC  [&#8618;](https://twitter.com/xieyihui/status/1114403960486387712)

<!-- -->


> **Agustin Alonso** (@alphaenR; 0/0): @gilbellosta Por favor, como cambiar Chapter y Contents en Bookdown. Tengo mis notas de clase en Bookdown, pero en la versión pdf salen Capitulo y Contenido en inglés.Muchísimas gracias.  [&#8618;](https://twitter.com/xieyihui/status/1113724041288925184)

<!-- -->


> **Luke Turcotte** (@luketurcotte; 0/0): @sharlagelfand Happy to help! I usually knit using LaTeX as my main document, but have been meaning to learn more about bookdown.  [&#8618;](https://twitter.com/xieyihui/status/1113510799362928641)

<!-- -->


# knitr

> **Charles T. Gray** (@cantabile; 26/5): TIL See str(knitr::opts_chunk$get()) for a list of default chunk options. 🥐  [&#8618;](https://twitter.com/xieyihui/status/1113955662428426241)

<!-- -->


> **Elio Campitelli** (@d_olivaw; 9/2): #knitr tip of the day. Put this on your setup chuck so that each document has its own cache folder. 
> #rstats https://t.co/8EJnYiqIKn  [&#8618;](https://twitter.com/xieyihui/status/1115302412384907265)

<!-- -->


> **Ph.Demetri** (@PhDemetri; 9/0): LaTex tables are dumb.
> >
> And before you go and say "use knitr", I am.  I still think they are dumb.  [&#8618;](https://twitter.com/xieyihui/status/1113893648117239808)

<!-- -->


> **Titus von der Malsburg** (@tmalsburg; 6/0): The joys of literate programming: While weaving my mega paper with dozens of expensive to fit Bayesian LMMs, I kept getting strange error message that made no sense. After one day of debugging, I realized that I was accidentally using Sweave instead of Knitr. 😩  [&#8618;](https://twitter.com/xieyihui/status/1115928943662632960)

<!-- -->


> **Ian Jonsen** (@IanJonsen; 5/0): TIL knitr::purl() beautifully converts .Rmd to .R scripts
> >
> knitr::purl("thing.Rmd", output="thing.R", documentation = 2)
> >
> moves text outside of R chunks to comments in thing.R
> >
> .Rmd's great for dev workflows/sharing/teaching but scripts best for production cases  [&#8618;](https://twitter.com/xieyihui/status/1113791696049983488)

<!-- -->


> **Peter Higgins** (@ibddoctor; 4/2): @kdpsinghlab @d_dd_ddd_dddd_ @ADAlthousePhD Can use data=.
> >
> library(arsenal)
> library(tidyverse)
> data(mockstudy)
> >
> mockstudy %&gt;% 
> tableby(arm ~ chisq(sex, digits.pct=1) + anova(age, digits=4) +
>                   anova(fu.time, digits = 1), data=.) %&gt;% 
>   summary() %&gt;% 
>   knitr::kable()
> #rstats  [&#8618;](https://twitter.com/xieyihui/status/1115552070738817025)

<!-- -->


> **Titus von der Malsburg** (@tmalsburg; 3/2): Perhaps a good opportunity to ask: Any best-practices regarding Rmarkdown/Sweave/Knitr that you've learned through painful experience? https://t.co/h19RiKwj38  [&#8618;](https://twitter.com/xieyihui/status/1115929814433697794)

<!-- -->


> **Peter Higgins** (@ibddoctor; 3/2): @kdpsinghlab @d_dd_ddd_dddd_ @ADAlthousePhD Or intubate, if you prefer
> >
> library(intubate)
> library(arsenal)
> library(tidyverse)
> data(mockstudy)
> >
> mockstudy %&gt;% 
> ntbt(tableby, arm ~ chisq(sex, digits.pct=1) + anova(age, digits=4) +
>                   anova(fu.time, digits = 1)) %&gt;% 
>   summary() %&gt;% 
>   knitr::kable()
> #rstats  [&#8618;](https://twitter.com/xieyihui/status/1115552497127419904)

<!-- -->


> **Michael DeCrescenzo** (@mikedecr; 3/2): Try as I might, I can't make this work with approach using inline #rstats code like `r here::here(...)`. 
> >
> I can do it other places in the YAML (like the date variable), but not for anything that handles TeX things. 
> >
> Anybody out there cracked this one yet? #rmarkdown #knitr https://t.co/7ZPl4v6GgN  [&#8618;](https://twitter.com/xieyihui/status/1114990289502920704)

<!-- -->


> **Gina Reynolds** (@EvaMaeRey; 3/0): repo: https://t.co/ZXJnpAzP0p   Playing with Xaringan.  Lots to try. Lots learned from @statsgen @grrrck  https://t.co/Zo0DUE6d1W   Maybe should have written a loop?  Too much copy paste!  😬🙂  [&#8618;](https://twitter.com/xieyihui/status/1115061957910978560)

<!-- -->


> **Dr Emily Kothe** (@emilyandthelime; 2/8): Does anyone have experience with using knitr parameter reports and know how I can pass an entire dataframe from my environment as a parameter? #rstats #LazyWeb  [&#8618;](https://twitter.com/xieyihui/status/1115464086085558278)

<!-- -->


> **Jim Junker** (@JimJunker; 2/1): @dataEcologist @visnut Maybe write_bib() in the knitr package? can write bibtex files for R packages that can then be imported to reference managers https://t.co/S8TTSx6Jht  [&#8618;](https://twitter.com/xieyihui/status/1113607145683996672)

<!-- -->


> **Jonathan Carroll** (@carroll_jono; 2/0): @VizMonkey @nacnudus @brodriguesco Oh, absolutely; {knitr} supports a Julia engine and you can use it there. There's also JuliaCall to actually call .jl functions from R. The use-case of Julia as an Rcpp alternative is the immediate inroad.  [&#8618;](https://twitter.com/xieyihui/status/1113927359344795648)

<!-- -->


> **Prasad Chandrashekar** (@PRASAC; 1/0): @byrd_nick @lakens @liaoshenyi @philofbrains Its a great tool, the output is comprehensive. I really wish this output/results could easily and seamlessly be accommodated to Rmarkdown knitr chunks in the future.  [&#8618;](https://twitter.com/xieyihui/status/1115986014466523136)

<!-- -->


> **Nathan Teetor** (@ntweetor; 1/0): * Sat down to get zeallot officially supporting R 3.1
> * Ran into travis ci errors
> * Enjoyed commit-aloging my journey addressing said errors
> * Discovered knitr no longer supports R 3.1
> * There's nothing to update now, ignore all previous bullets  [&#8618;](https://twitter.com/xieyihui/status/1115789630639628293)

<!-- -->


> **Susannah Cowtan (she/her)** (@SuusJC; 1/0): @lakens @IsabellaGhement @benmarwick This will make assignments much less painful. Will it work in LaTeX/knitr too?  [&#8618;](https://twitter.com/xieyihui/status/1114920924908855297)

<!-- -->


> **Ahmed Bekhit** (@ABekhit; 1/0): @rbjanis5 @rstudiotips Since I knew about knitr::spin, I stopped creating both working script and notebooks to explain how it works. https://t.co/jFxV5laOJ8  [&#8618;](https://twitter.com/xieyihui/status/1114707629895553024)

<!-- -->


> **Michael Chirico** (@michael_chirico; 0/0): @MattDowle @klmr no, knitr is built &amp; installed fine  [&#8618;](https://twitter.com/xieyihui/status/1115940221504245761)

<!-- -->


> **Jason Punyon** (@JasonPunyon; 0/0): caching and knitr::knit_exit do not play well together  [&#8618;](https://twitter.com/xieyihui/status/1115660694693797888)

<!-- -->


> **tj mahr 🍕🍍** (@tjmahr; 0/0): @mikedecr (ignore the file_in, file_out, knitr_in functions. Those are directives for drake)  [&#8618;](https://twitter.com/xieyihui/status/1115073333933027328)

<!-- -->


> **James Howard** (@howardjp; 0/0): @overleaf Hi, trying Overleaf again since talking to your rep at JMM in January.  I complained about the lack of knitr support.  Was told it's there now!  But texreg is not included, and knitr is close to useless without it.  [&#8618;](https://twitter.com/xieyihui/status/1114250219737231367)

<!-- -->


> **Charles T. Gray** (@cantabile; 0/0): Not to be confused, full disclosure, as I was, with $set 🤣, when I was trying to turn off evaluation so I could add text without fixing my wrangling issue.
> >
> knitr::opts_chunk$set(eval = FALSE, echo = TRUE)  [&#8618;](https://twitter.com/xieyihui/status/1113963710807044096)

<!-- -->


> **tidyverse tweets** (@tidyversetweets; 0/0): Combining knitr::kable formatting for HTML output with custom S3 formatting methods #tidyverse #rstats https://t.co/afbVHRYsyU  [&#8618;](https://twitter.com/xieyihui/status/1113745570051571712)

<!-- -->


> **Elsa Braun** (@BraunElsa; 0/0): Thanks so much for all your R work! I just discovered your blog and will look through it to get a deeper understanding of R concepts (knitr, R Markdown).  [&#8618;](https://twitter.com/xieyihui/status/1113644955648577536)

<!-- -->


> **stamina** (@stamina48424864; 0/0): knitr: Elegant, flexible and fast dynamic report generation with R | knitr https://t.co/RmiUBIXlo3  [&#8618;](https://twitter.com/xieyihui/status/1113634096062689281)

<!-- -->


# pagedown

> **Colin Fay 🤘** (@_ColinFay; 0/0): @rmflight I think there are things to do that in {pagedown} https://t.co/6IiqIAgS7j  [&#8618;](https://twitter.com/xieyihui/status/1115636375838187520)

<!-- -->


# tinytex

> **Mags Forum Technology** (@mags_ft; 0/0): Installing TinyTex to use for R studio https://t.co/wg9RrmID24  [&#8618;](https://twitter.com/xieyihui/status/1113994519643656195)

<!-- -->


# xaringan

> **Gina Reynolds** (@EvaMaeRey; 72/11): I made a gallery of #gganimate in-out- easing options using #rmarkdown and #xaringan. 🙂 Which choice works best with this viz? I'm liking "elastic-in-out".  #dataviz #rstats  https://t.co/EcgavdgGdL https://t.co/6a9g6crXSP  [&#8618;](https://twitter.com/xieyihui/status/1115059723034693633)

<!-- -->


> **Jiena Gu McLellan** (@JoannaMelon; 27/8): Generating interactive presentation/ reports from shiny side by @rstudio. 😎🥳🤠To help business analytics team getting work (presentation) done in one min! #rstats #rshiny #rmarkdown Next goal is intergrating #xaringan Live: https://t.co/aktbZ7Ej0n Repo: https://t.co/zWGqNJU17R https://t.co/DeD9k22SEs  [&#8618;](https://twitter.com/xieyihui/status/1114326202905452544)

<!-- -->


> **Danielle Navarro** (@djnavarro; 12/0): I wish I weren't so incompetent with xaringan  [&#8618;](https://twitter.com/xieyihui/status/1113696924513853440)

<!-- -->


> **Tatjana Kecojevic** (@Tatjana_Kec; 6/4): Had a great week talking about #data #Democracy using #rstats during #opendata week  organised by #UNDP #serbia. Check out one of the interpretation of data democracy through #xaringan #rmarkdown slides.
> https://t.co/mqgpIUrWpr
> >
> #Rladies #DataScience https://t.co/NHq8PaLmN3  [&#8618;](https://twitter.com/xieyihui/status/1115567922192232448)

<!-- -->


> **Jessica Burnett** (@TrashBirdEcol; 4/2): I learned* @xieyihui 's Xaringan this week (as in, since Thursday) and am presenting our "Velocity" method  @AWMmath #rstats
> >
> Here is a link to the slides https://t.co/ZgqSPlzuSl 
> (*enough to make a simple presentation)  [&#8618;](https://twitter.com/xieyihui/status/1114897845587460096)

<!-- -->


> **Danielle Navarro** (@djnavarro; 4/0): @apreshill @datawookie Writing slides using xaringan: https://t.co/5VzuXq4EZK  [&#8618;](https://twitter.com/xieyihui/status/1114766298528006145)

<!-- -->


> **Yihui Xie** (@xieyihui; 3/0): @cclanfear Seriously, consider pagedown::chrome_print(): https://t.co/59rE42DTfB We have worked very hard on this problem, and I think chrome_print() is very robust now (also tested on Mac/Linux).  [&#8618;](https://twitter.com/xieyihui/status/1113648544328691712)

<!-- -->


> **ch** (@chxnxvs; 2/1): @Mendes6511 @JuhFernandes_11 achei q era aquele bglh la do naruto xaringan  [&#8618;](https://twitter.com/xieyihui/status/1115733708433252354)

<!-- -->


> **Zhi Yang** (@zhiiiyang; 2/0): @martinjhnhadley #xaringan 
> Demo here: https://t.co/c2xnGGmR7K  [&#8618;](https://twitter.com/xieyihui/status/1115011317297889282)

<!-- -->


> **Martin John Hadley** (@martinjhnhadley; 1/0): @zhiiiyang Oh! I’ve been using xaringan for a while, it’s awesome. I’m looking for a solution for code diagrams, particularly for Shiny apps to show how and when reactive expressions update.  [&#8618;](https://twitter.com/xieyihui/status/1115015055077068800)

<!-- -->


> **Danielle Navarro** (@djnavarro; 1/0): @statsgen Still a work in progress. So many little fiddly things in themes, but I really want to be able to have my plots show up like that in my xaringan presentations, so I'm going to see if I can iron out all the bugs.  [&#8618;](https://twitter.com/xieyihui/status/1114789440550055936)

<!-- -->


> **Gaby D'Souza** (@gabster0191; 0/1): #rstats
> >
> Does anyone have a dummy guide for how to publish your xaringan themed slides online in html format. I keep getting the inverse: class textbox error.  [&#8618;](https://twitter.com/xieyihui/status/1115362295020957696)

<!-- -->


> **Benjamin Wolfe** (@BenjaminWolfe; 0/0): @EvaMaeRey This is too perfect; thank you so much for sharing. I was just getting ready to come back to this and do some flip-bookage for my xaringan presentations! https://t.co/TOZ37H6Ojl  [&#8618;](https://twitter.com/xieyihui/status/1115727011593375744)

<!-- -->


# yihui.name

> **Prof Gaëlle 🇪🇺** (@ProfGaelle; 8/0): I’m sure everyone in my Twitter echo chamber knows about Presentation Ninja, but still, let me say 🤩🤩🤩 https://t.co/Om9pPw2J7r  [&#8618;](https://twitter.com/xieyihui/status/1113364945427730432)

<!-- -->


> **Miles McBain** (@MilesMcBain; 5/3): @hrbrmstr @Voovarb Here's a fun example where @xieyihui casually knocks up proto shiny implementation in terrifyingly little code https://t.co/KK8mKQfnbY  [&#8618;](https://twitter.com/xieyihui/status/1115966518154514432)

<!-- -->


