{
  "title": "👉 #rstats and knitr tip! You can apply custom CSS to source and output code using the `class.source` and `class.output` chunk opts. 🎉 And with knitr 1.22 (on GitHub now), you can apply custom styles to messages, warnings and errors! 🙏 @xieyihui! https://t.co/p1EzVBOCOE",
  "date": "2019-03-06"
}

# blogdown

> **Alison Hill** (@apreshill; 68/10): If you are currently using #rstats #blogdown and want to better understand @GoHugoIO, this blog post (author not on twitter) is 💯:
> >
> Make a Hugo blog from scratch
> >
> https://t.co/PXGYfimk7i
> >
> I'm trying to get better at this Hugo DIY stuff :) 🔨 https://t.co/nHdWB4sQhR  [&#8618;](https://twitter.com/xieyihui/status/1101870906379386880)

<!-- -->


> **Alison Hill** (@apreshill; 61/18): A new blog post- my attempt to help you troubleshoot your Hugo #blogdown builds. Any #rstats users have other tried-and-true advice for troubleshooting? 
> >
> https://t.co/ycj7DXnZX6 https://t.co/0qDofRXi7K  [&#8618;](https://twitter.com/xieyihui/status/1102702011240275968)

<!-- -->


> **Amber Thomas** (@ProQuesAsker; 58/7): I'm currently working on making a new #rstats blogdown theme &amp; my partner (@parkerwyoung) is tackling the design aspect of my personal version 💕. When he asked what I want it to feel like, I said "I want it to clearly be a tech resource but one that's unabashedly feminine" 1/14  [&#8618;](https://twitter.com/xieyihui/status/1101996283714125824)

<!-- -->


> **Mara Averick** (@dataandme; 40/7): 🧰 Hugo/blogdown expert, @apreshill, continues w/ tricks of the trade…
> 🥄 "A Spoonful of Hugo: Troubleshooting Your Build" 
> https://t.co/jfzbsSZmdy #blogdown #hugo https://t.co/VRdBOUVHjc  [&#8618;](https://twitter.com/xieyihui/status/1102992682530627584)

<!-- -->


> **Alexandra Michel** (@alexandra_em; 17/2): @HeatherUrry I just learned the magic of Markdown in a class from @apreshill who has written a very cool book on publishing online using Markdown https://t.co/XOcSIxsSVd  [&#8618;](https://twitter.com/xieyihui/status/1100800181857964033)

<!-- -->


> **Frank Harrell** (@f2harrell; 7/1): @robjhyndman @DanielPanyard @dgkeyes @hadleywickham Writing little bash scripts (e.g. to run knitr with various options) goes a long, long way.  Next I want to learn how to write a script that creates .md files from .Rmarkdown files for blogdown without running RStudio.  [&#8618;](https://twitter.com/xieyihui/status/1101854068136439808)

<!-- -->


> **Alison Hill** (@apreshill; 6/1): @sharlagelfand Yes place the Rmd file in static then add this build.R script: https://t.co/PVdRlXFn7K  [&#8618;](https://twitter.com/xieyihui/status/1102719937775206400)

<!-- -->


> **Ahmet Ozisik** (@_aozisik; 5/3): Blogdown v2:
> >
> This package gives you a markdown blog in #laravel. No database migrations. Just create posts in markdown and profit 💸💸💸
> >
> https://t.co/UKPkvAmXFq
> >
> Currently using it for https://t.co/zI6dNZ8lKV :)  [&#8618;](https://twitter.com/xieyihui/status/1102943816997310464)

<!-- -->


> **Rob J Hyndman** (@robjhyndman; 5/1): @f2harrell @DanielPanyard @dgkeyes @hadleywickham Rscript -e "blogdown::hugo_build()" will build the site including generating all .md from .Rmd files. 
> Rscript -e "blogdown::serve_site()" will serve the site to a local browser.
> I have these in a Makefile.  [&#8618;](https://twitter.com/xieyihui/status/1101995547232100352)

<!-- -->


> **Jonathan Carroll** (@carroll_jono; 4/1): Another win for #blogdown + #netlify over WP (at least by ease of use)... A/B (/C/D/...) testing via branches
> >
> https://t.co/gABLhRMljL
> >
> Go on, make a yolo option in a new branch and only let 10% of users see it, I dare ya! https://t.co/QxUsxpriVr  [&#8618;](https://twitter.com/xieyihui/status/1101273557827371008)

<!-- -->


> **Aly Baumgartner** (@kyrietree; 4/0): It’s 8 pm and I’m watching Planet Earth and downloading R blogdown because @DCrainium told me to. The life of a grad student is super glamorous.  [&#8618;](https://twitter.com/xieyihui/status/1101304819493539840)

<!-- -->


> **farid anvari** (@farid_anvari; 3/0): @lingtax @fmrwhy @dsquintana @MelbOpenRes alright, seems like blogdown has quite a bit of support from my contacts. definitely will try it out.  [&#8618;](https://twitter.com/xieyihui/status/1102867414612656129)

<!-- -->


> **Owen Churches** (@OwenChurches; 3/0): @farid_anvari If you’re keen to have a super website while polishing up your #rstats skills then check out #blogdown (https://t.co/oPaPnki6Rg) the academic theme is delightful. Give me a shout if your interested and want pointers/tips/emotional support!  [&#8618;](https://twitter.com/xieyihui/status/1102856105275777025)

<!-- -->


> **Sharla Gelfand** (@sharlagelfand; 2/1): @apreshill is there a specific kind of magic that you used to host your xaringan slides on blogdown? 🙈 like these: https://t.co/m9gtgPX9C0  [&#8618;](https://twitter.com/xieyihui/status/1102718103908241408)

<!-- -->


> **Guy Prochilo 🏳️‍🌈** (@GuyProchilo; 2/1): #Rstats: Hugo-academic blogdown theme is a beautiful template recommended for academics who want a professional-looking website. I've recently switched to it for my personal profile. 
> >
> Instructions on GitHub:
> https://t.co/0EG3rlwVEV
> >
> My website: 
> https://t.co/eTVWEtFOaX
> >
> #phdchat https://t.co/5kSF2hvNAP  [&#8618;](https://twitter.com/xieyihui/status/1101301231715266560)

<!-- -->


> **Ahmet Ozisik** (@_aozisik; 2/0): Blogdown 2 is in the works 💻... Stay tuned if you're looking to quickly add a markdown based flat file blog to your #laravel project!  [&#8618;](https://twitter.com/xieyihui/status/1102898307523842048)

<!-- -->


> **Mathew 'Night Science' Ling** (@lingtax; 2/0): @fmrwhy @farid_anvari @dsquintana Strongly recommend. All of our lab's websites are using blogdown.  As are the @MelbOpenRes  etc.  Super convenient and fast  [&#8618;](https://twitter.com/xieyihui/status/1102854469669117952)

<!-- -->


> **Alison Hill** (@apreshill; 2/0): @fredericksolt @ShreyasRagavan @rstudio That is too bad! Compared to many (MANY) other Hugo themes I have tried, that one works mostly "out of the box". For future reference, there are some changes to blogdown, so my new advice is for initializing a new site is here: https://t.co/ifmEdjRcae https://t.co/mIZvDttZlh  [&#8618;](https://twitter.com/xieyihui/status/1101945732091666432)

<!-- -->


> **Jonathan Carroll** (@carroll_jono; 2/0): @_johnmackintosh Reads well to me. Double thanks for the intro to group_split! I want to do some of these shorter posts. I'm probably just going to start with the estimate of a couple of hours.
> >
> FYI, my new blogdown site (yet to be announced) uses the same theme with similar modifications 🤜  [&#8618;](https://twitter.com/xieyihui/status/1101389899494653952)

<!-- -->


> **Guy Prochilo 🏳️‍🌈** (@GuyProchilo; 2/0): @madmscientist @AcademicChatter I built my website using R Blogdown in R Studio, and host it for free on GitHub pages. The source code is version controlled on my GitHub page.  [&#8618;](https://twitter.com/xieyihui/status/1100949550263463936)

<!-- -->


> **Yihui Xie** (@xieyihui; 2/0): @i_steves @visnut Yes, please feel free to edit this page: https://t.co/GDv8vNqqaQ Thank you! BTW, I can't recommend browser DevTools enough: https://t.co/hzA3eHRBiC Fundamentally people need to understand CSS specificity hierarchy: https://t.co/achA6Nxgyn  [&#8618;](https://twitter.com/xieyihui/status/1100879334343098368)

<!-- -->


> **Maxwel C. Oliveira** (@maxwelco; 1/0): @Camila_ohofman @Dr_Joe_Roberts @leoNitrogen Markdown, Tidyverse, Blogdown, Bookdown, multiple R stat packages.  [&#8618;](https://twitter.com/xieyihui/status/1103080292242341888)

<!-- -->


> **Ariel Muldoon** (@aosmith16; 1/0): @apreshill I *finally* had a chance to try some of these ideas out on my own #blogdown blog.  It felt a little kludgier in my theme compared to the academic theme 😸, but it's up and running! Thanks for the inspiration.  [&#8618;](https://twitter.com/xieyihui/status/1102955782356709376)

<!-- -->


> **Dr. Ryan Straight** (@RyanStraight; 1/0): I've always found it both amazing and finicky: I'd repeat exact setups and one site would work well while another crashes and burns. Still, its amazingness overrides its finickiness. Great resource, here. #blogdown #rstats https://t.co/4ePZ7wfDKk  [&#8618;](https://twitter.com/xieyihui/status/1102805880100118528)

<!-- -->


> **Alison Hill** (@apreshill; 1/0): @jtrnyc You can always simplify a complex one- but adding complexity to a simple one is much harder! Here are my slides using future imperfect for a workshop: https://t.co/PxDpxfQbJt  [&#8618;](https://twitter.com/xieyihui/status/1102743769651208192)

<!-- -->


> **Frederick Solt** (@fredericksolt; 1/0): @ShreyasRagavan @apreshill @rstudio Neither I nor my students could get the academic theme up and running—easier to build my own (simple) theme based on my website than to find fixes. Really disappointing.  Anyway, here’s what i ended up telling them:
> >
> https://t.co/p9eV36erpC
> >
> 1/2  [&#8618;](https://twitter.com/xieyihui/status/1101939432805019649)

<!-- -->


> **Fatih Kansoy** (@kansoy; 1/0): @dsquintana Thank you very much. Let me correct a tiny thing. It should be --&gt; "   not --&gt; ”  in command. so the correct installation command is install.packages("blogdown")  [&#8618;](https://twitter.com/xieyihui/status/1101924995016638464)

<!-- -->


> **Karandeep Singh** (@kdpsinghlab; 1/0): @f2harrell @rstats4ds @robjhyndman @DanielPanyard @dgkeyes @hadleywickham Not sure if that will work for blogdown but works for regular .Rmd files.  [&#8618;](https://twitter.com/xieyihui/status/1101869930776092672)

<!-- -->


> **Andrew Heiss, PhD** (@andrewheiss; 1/0): @JonAskonas But this is now getting super unwieldy, so I'm looking for a solution that lets me simultaneously (1) use the notebook system / Rmd website / maybe blogdown, and (2) build nice PDF/HTML/docx manuscripts  [&#8618;](https://twitter.com/xieyihui/status/1101673587612643328)

<!-- -->


> **Youngbin Lee** (@Youngbin__Lee; 1/0): An animation of #PremierLeague table by round so far.
> white color teams are colored as gray color.
> This animation is made by #gganimate and the result is also in my blog created by #blogdown
> >
> post: https://t.co/8z9Idg6Dcb프리미어리그-순위표-애니메이션-작성/ https://t.co/OrWNaPPf26  [&#8618;](https://twitter.com/xieyihui/status/1101410070850502656)

<!-- -->


> **Gordon** (@gorafle; 1/0): Apparently the key to deploying a working blogdown blog is incremental changes and having "git reset --hard" nearby.  [&#8618;](https://twitter.com/xieyihui/status/1101275905463406593)

<!-- -->


> **Duncan Garmonsway** (@nacnudus; 1/0): @RobinLinacre @stats_o @mattdray +500 bounty from the author! Very nice explanation. I got stuck in the weeds of how customisations are passed down the chain (or not) https://t.co/LkTQHS7xqL  [&#8618;](https://twitter.com/xieyihui/status/1100818466397978625)

<!-- -->


> **Nicholas Vasile** (@nicholas_v; 0/0): @xieyihui OK, just submitted the PR. Appreciate any feedback...I did duplicate the info because I think people may not review both sections and this will improve the odds they are made aware of the requirement. https://t.co/8AQTSwDuMT  [&#8618;](https://twitter.com/xieyihui/status/1103111536879513603)

<!-- -->


> **Matt.0** (@MattOldach; 0/0): @kbradnam I've certainly read the ACGT and Rescued by Code and knew of the assemblathon initiative, and papers, but maybe not the blog. What's the impetus for so many different ones, content? As more junior blogger I'm using blogdown for everything but cross-post medium for exposure FWIW  [&#8618;](https://twitter.com/xieyihui/status/1103101949124186112)

<!-- -->


> **gsartorik** (@gsartorikk; 0/0): @ClausEkstrom hello can you help with a issue? I cant change the language, do you have a reproducible code, for this question? https://t.co/2y4nww0ueg  [&#8618;](https://twitter.com/xieyihui/status/1103097474439434240)

<!-- -->


> **Meme Overflow** (@overflow_meme; 0/0): Sankey Network (within R blogdown) won't render properly on Firefox https://t.co/Qg46q5AQzg https://t.co/mYdih2ZQIv  [&#8618;](https://twitter.com/xieyihui/status/1102735154303389696)

<!-- -->


> **Joyce Robbins** (@jtrnyc; 0/0): @apreshill Thanks for posting... I'm starting to play around with blogdown + Hugo + Netlify (github_document is nice but has its limitations). I don't have advice, but have lots of ?s, like can I just pick a theme &amp; change it later or is that approach going to get me in trouble?  [&#8618;](https://twitter.com/xieyihui/status/1102720682939637760)

<!-- -->


> **Nussaibah Raja** (@mauritiantales; 0/0): I finally got around the switching to blogdown. The website is kinda live with still lots of work needed but quite happy with what I have right now! https://t.co/A3MJorO0KQ  [&#8618;](https://twitter.com/xieyihui/status/1102255682613583872)

<!-- -->


> **Brian G Barkley** (@BarkleyBG; 0/0): Blog post: Are you interested in booting up #blogdown to share your #rstats work? I share my experiences with how fast &amp; easy the setup was!
> >
> https://t.co/geHynsg7IJ
> >
> Thanks to @RokkinCat for hosting the Hack N Tell in @Ward4MKE!  [&#8618;](https://twitter.com/xieyihui/status/1100820157314797568)

<!-- -->


# bookdown

> **tipsder** (@tipsder; 52/38): ¡5 libros, en español, recomendados para el aprendizaje de #R!
> https://t.co/Ol1IyyplnT
> https://t.co/fHt6p6BpsO
> https://t.co/NSlaCRQr71
> https://t.co/20aN2Pk5br
> https://t.co/eao81jNgaz
> #rstats
> #DataScience 
> #dataviz 
> #data https://t.co/QvD3f66DN5  [&#8618;](https://twitter.com/xieyihui/status/1101446446132461568)

<!-- -->


> **ModernDive** (@ModernDive; 21/4): Don’t fret open-source fans! The online version will remain on https://t.co/X5zI0Le6hB &amp; the #bookdown source code will remain at https://t.co/pX0Dof1EXl. We’ll publish our first complete version online by early Summer 2019, print version to follow in Fall 2019. Stay tuned!  [&#8618;](https://twitter.com/xieyihui/status/1102624958461566977)

<!-- -->


> **Conor Anderson 🌧️** (@climoconor; 17/0): @nnstats I literally wrote a Python book in R Markdown because it is the best tool for the job. bookdown is so convenient.  [&#8618;](https://twitter.com/xieyihui/status/1100949342893023232)

<!-- -->


> **phalanx** (@phalanx27019356; 12/0): https://t.co/MBnOotl30r  [&#8618;](https://twitter.com/xieyihui/status/1101582596033503233)

<!-- -->


> **Gina Reynolds** (@EvaMaeRey; 10/3): Worked out this toy project for students (and for myself!). "From raw data to paper and presentation" is a reference for workflow.  🤓🤠😎  Links to html products in README  #rstats #xaringan #markdown #bookdown #posterdown https://t.co/PJ6qrsDiP2 https://t.co/AivNATF2h6  [&#8618;](https://twitter.com/xieyihui/status/1100818108527173632)

<!-- -->


> **Hiroaki Yutani** (@yutannihilation; 7/1): この発表聞きたかった...。ちなみにCの関数をRのパッケージで使いたいときはこんな感じらしいです（あんまりちゃんと理解してない）。 https://t.co/78cC3PDFeu #SappoRoR  [&#8618;](https://twitter.com/xieyihui/status/1101746598181199872)

<!-- -->


> **Katie Lee** (@ResourcefulSqrl; 7/0): The hill I will die on: manually labelling figures and tables in text is not worth the effort until you are approaching a final draft.
> >
> Related: I spent far too much of today learning how to use #bookdown  [&#8618;](https://twitter.com/xieyihui/status/1102318483461816321)

<!-- -->


> **Max Kuhn** (@topepos; 6/2): Want to vote on the figure used for cover art figure for https://t.co/bNeNSVDj3G ?
> >
> #rstats  [&#8618;](https://twitter.com/xieyihui/status/1102371823000395778)

<!-- -->


> **Ryan Travis** (@fledglingStat; 6/0): @JohnSakaluk @statwonk https://t.co/rwpIlLgQwr  [&#8618;](https://twitter.com/xieyihui/status/1101669274203021313)

<!-- -->


> **Deemah 🇺🇦  🇳🇴** (@dmi3k; 5/1): @inferencelab Statistical rethinking ... reimagined with {brms} by @SolomonKurz 
> https://t.co/lwkG6ZeStB  [&#8618;](https://twitter.com/xieyihui/status/1102702626041409538)

<!-- -->


> **Michael Sumner** (@mdsumner; 5/0): @kareem_carr That's done, it's called bookdown  [&#8618;](https://twitter.com/xieyihui/status/1101975373405872129)

<!-- -->


> **Alison Hill** (@apreshill; 4/2): @cantabile No sadly but amazing things can be done with css for the gitbook format like 
> https://t.co/6g1oaeSpJ5  [&#8618;](https://twitter.com/xieyihui/status/1101981306714349568)

<!-- -->


> **Denis Schluppeck** (@schluppeck; 4/1): @psychopy just re-working my #matlab materials - to include a "why should I care" bit at the start of each block. actually, doing the documentation in #bookdown / #rmarkdown is a total treat ... maybe we should add a beginners #rstats course to the repertoire @notts_psych @UoNScience https://t.co/I4S5yHWwrG  [&#8618;](https://twitter.com/xieyihui/status/1102909524447555585)

<!-- -->


> **Tiffany Timbers** (@TiffanyTimbers; 3/0): @rudeboybert @Reed_College_ will you keep the bookdown version available??  [&#8618;](https://twitter.com/xieyihui/status/1102651293854650368)

<!-- -->


> **Alison Hill** (@apreshill; 3/0): @cantabile I really need to make my bookdown xaringan slides into something like... a bookdown book 😂  [&#8618;](https://twitter.com/xieyihui/status/1101995630644228096)

<!-- -->


> **Florian Oswald** (@FlorianOswald; 3/0): @nnstats Bookdown also works with #julialang. Even though it has its own version of knitr called Weave.jl . I haven’t tried bookdown with Julia yet though.  [&#8618;](https://twitter.com/xieyihui/status/1101383090725896192)

<!-- -->


> **Robin Linacre** (@RobinLinacre; 2/3): @stats_o @mattdray @nacnudus My most popular stackoverflow! https://t.co/6EfgAWP20l Although doesn't cover bookdown properly and it probably should.  I still don't feel like I fully understand it all though.  [&#8618;](https://twitter.com/xieyihui/status/1100816539111079938)

<!-- -->


> **Matthew Lincoln** (@matthewdlincoln; 2/1): @Zoe_LeBlanc One thing I find pandoc falls down on is numbered figure/table references (or at least it did when I was compiling my diss) Even today I’ll sometimes use bookdown _even when I don’t have R code_ because it handles numbering.  [&#8618;](https://twitter.com/xieyihui/status/1103024213902934017)

<!-- -->


> **Charles T. Gray** (@cantabile; 2/1): @apreshill Is it strange that I just shuddered with pleasure at the prospect of mining these bookdown themes? Yup, typesetting is for sure the gateway drug.  [&#8618;](https://twitter.com/xieyihui/status/1101981934312316928)

<!-- -->


> **Michael👨🏼‍💻MacAskill** (@Sakkaden; 2/0): @HeatherUrry @FrederikAust Wasn’t aware of papaja until your thread: within 30 s of reading its documentation, think I’ve solved the issue I’ve had with getting table/figure cross references to work with bookdown - my last stumbling block in this approach. Thanks.  [&#8618;](https://twitter.com/xieyihui/status/1100853077693747200)

<!-- -->


> **Matthew Lincoln** (@matthewdlincoln; 1/1): @Zoe_LeBlanc The big caveat - you will spend a lot of time debugging what is causing what (in order of abstraction, from high to low level): 1) bookdown 2) rmarkdown 3) knitr 4) pandoc 5) latex  [&#8618;](https://twitter.com/xieyihui/status/1103032289661997056)

<!-- -->


> **Zoe LeBlanc** (@Zoe_LeBlanc; 1/1): @matthewdlincoln Good to know abt pandoc. Trying to number figures&amp; make captions in google docs almost ended me. Do you have any examples of using bookdown that I could peep? tbh I feel like R does just about everything at this point, it seems super magical ✨.  [&#8618;](https://twitter.com/xieyihui/status/1103027900595531779)

<!-- -->


> **mattwilmott** (@mattwilmott; 1/0): R Markdown: The Definitive Guide https://t.co/bVOHYJtq0q  [&#8618;](https://twitter.com/xieyihui/status/1103087801652924416)

<!-- -->


> **Matthew Lincoln** (@matthewdlincoln; 1/0): @Zoe_LeBlanc Yeah, in your case since you’re generating them all in python, at least you don’t have to worry about your r code choking - just use include_graphics and point it at the file https://t.co/SKfBhMHlMQ  [&#8618;](https://twitter.com/xieyihui/status/1103033216271876097)

<!-- -->


> **Matthew Lincoln** (@matthewdlincoln; 1/0): @Zoe_LeBlanc https://t.co/DQQHyPgX7t
> >
> (Also a huge amnt of stuff is in the bookdown docs and yihui is v responsive)  [&#8618;](https://twitter.com/xieyihui/status/1103030994402189312)

<!-- -->


> **Matthew Lincoln** (@matthewdlincoln; 1/0): @Zoe_LeBlanc The makefile shows the particular bookdown commands that need to be run to get that repository to spit out html/doc/pdf. The actual text is in the .Rmd file. _output.yml has some relevant config stuff  [&#8618;](https://twitter.com/xieyihui/status/1103029422410600449)

<!-- -->


> **Hamza Mousa** (@hamzamu; 1/0): R #Markdown: The Definitive Guide https://t.co/Uk90tPeBYn #DataScience #DataScientists #BigData #bigdataanalytics  [&#8618;](https://twitter.com/xieyihui/status/1102309262099968000)

<!-- -->


> **ペグ335** (@distatim; 1/0): 昨日JS推定量の話が#TokyoRであって興味深いと思ったら、R+tidyverseでシミュレーションしている資料があった。
> https://t.co/1aamnWVOJQ  [&#8618;](https://twitter.com/xieyihui/status/1102104921954934784)

<!-- -->


> **Charles T. Gray** (@cantabile; 1/0): @apreshill Do these work for bookdown? 
> >
> Am obsessed with bookdown right now.  [&#8618;](https://twitter.com/xieyihui/status/1101980372936536064)

<!-- -->


> **Michael Sumner** (@mdsumner; 1/0): @jepusto @kareem_carr No, bookdown  [&#8618;](https://twitter.com/xieyihui/status/1101975092790091776)

<!-- -->


> **Charlie** (@CharlieCuddy; 1/0): Looking for a list of #rstat resources? #codecuddy
> >
> https://t.co/QZD2kr7nzA  [&#8618;](https://twitter.com/xieyihui/status/1101935179122262016)

<!-- -->


> **Henry Francisco** (@HFSORIAD; 1/0): Introducción a estadística con R:
> https://t.co/3Vz36XYnO6
> Autor: Matias Andina  [&#8618;](https://twitter.com/xieyihui/status/1101907846965407745)

<!-- -->


> **Henry Francisco** (@HFSORIAD; 1/0): R para principiantes:
> https://t.co/aWn4bvqIMB 
> Autor: Juan Bosco Mendoza Vega  [&#8618;](https://twitter.com/xieyihui/status/1101907494643949569)

<!-- -->


> **Henry Francisco** (@HFSORIAD; 1/0): Escritura de libros con bookdown:
> https://t.co/vAmsWd3Adk
> Autores: Fernández-Casal, R. y Cotos-Yáñez, T.R.  [&#8618;](https://twitter.com/xieyihui/status/1101906762159013890)

<!-- -->


> **Robin Linacre** (@RobinLinacre; 1/0): @nacnudus @stats_o @mattdray I got stuck with something pretty similar! https://t.co/9C8dPx6ECr  [&#8618;](https://twitter.com/xieyihui/status/1100819008754982913)

<!-- -->


> **Pachá 帕夏** (@pachamaltese; 0/0): The documentation of @opentradestats is growing a lot!! I integrated everything into a single bookdown site. The data downloading, cleaning, ingesting to DB, API function and website were made with R packages. https://t.co/bLmtOP1SgU #rstats https://t.co/Rv6vfbENg2  [&#8618;](https://twitter.com/xieyihui/status/1102683925963567107)

<!-- -->


> **David L Gibbs** (@gibbsdavidl; 0/0): A re-expression of 'rethinking statistics' (McElreath) using brms (stan) and tidyverse.  Nice resource!
> >
> https://t.co/YmSXBvjBII  [&#8618;](https://twitter.com/xieyihui/status/1102669076696989697)

<!-- -->


> **R StackOverflow** (@r_stackoverflow; 0/0): Bookdown definition/description list? [Votes: 2] #r #bookdown
> https://t.co/6BLCIzy6xO  [&#8618;](https://twitter.com/xieyihui/status/1102339545322979328)

<!-- -->


> **Healthcare meets open source** (@goomedic; 0/0): R #Markdown: The Definitive Guide https://t.co/ASJwydubJa #DataScience #DataScientists #BigData #bigdataanalytics  [&#8618;](https://twitter.com/xieyihui/status/1102309238221742080)

<!-- -->


> **Charles T. Gray** (@cantabile; 0/0): devtools::install_github("hebrewseniorlife/bookdownThemeEditor")
> >
> Need to install some tidyverse packages. Waiting with bated breath to see if this addin works out of the box with bookdown.  [&#8618;](https://twitter.com/xieyihui/status/1102030038109569024)

<!-- -->


> **Charlie** (@CharlieCuddy; 0/0): YaRrr! The Pirate’s Guide to R
> #codecuddy #rstats 
> https://t.co/RweXmDH6yU  [&#8618;](https://twitter.com/xieyihui/status/1101858874884268032)

<!-- -->


> **Francisco Díaz** (@Fra91fdiaz; 0/0): ¡5 libros, en español, recomendados para el aprendizaje de #R!
> https://t.co/0Hutp6vz0U
> https://t.co/yioHGWSZWP
> https://t.co/LV6V10dO0N
> https://t.co/BGHCVAAdRM
> https://t.co/K1yHvxyJln
> #rstats
> #DataScience 
> #dataviz 
> #data https://t.co/FUs2SHTr7X  [&#8618;](https://twitter.com/xieyihui/status/1101545373858971649)

<!-- -->


> **Antonio Rodriguez Andres** (@Antonio23132075; 0/0): https://t.co/hcuhHesFne  [&#8618;](https://twitter.com/xieyihui/status/1101205264013934596)

<!-- -->


> **Eloi** (@eloimm; 0/0): @gianlubaio afraid of what?.. maybe in a somewhere *less personal* like bookdown...  [&#8618;](https://twitter.com/xieyihui/status/1100860703961956352)

<!-- -->


# knitr

> **Garrick Aden-Buie** (@grrrck; 165/51): 👉 #rstats and knitr tip! You can apply custom CSS to source and output  code using the `class.source` and `class.output` chunk opts.
> >
> 🎉 And with knitr 1.22 (on GitHub now), you can apply custom styles to messages, warnings and errors! 🙏 @xieyihui!
> https://t.co/p1EzVBOCOE  [&#8618;](https://twitter.com/xieyihui/status/1102951019166744576)

<!-- -->


> **Dan Ovando** (@DanOvand0; 17/2): New #RStats magic discovered, use knitr::purl("foo.Rmd") to generate an R script containing just the code chunks from your .Rmd! Even copies the chunk names as section headers. Can also use knitr::spin to go from .R to .Rmd, which blew my mind https://t.co/7D88dTyouG @ecodatasci  [&#8618;](https://twitter.com/xieyihui/status/1103130434915860481)

<!-- -->


> **David States** (@statesdj; 10/3): Is this really the first? If so, embarassing that the bioinformatics community did not get here years ago @ProfLHunter @Rbaltman @Alfons_Valencia @ewanbirney Long tradition of tools like knitr and Rmarkdown https://t.co/8xS0wws5jE  [&#8618;](https://twitter.com/xieyihui/status/1102571694659645441)

<!-- -->


> **Jose Barrera** (@overdispersion; 6/5): In #projecteAtenció (@ISGLOBALorg, @CrecimUab), we create customized high quality reports for 35 schools, varying the number of experiments, tables, figures and even text. We do it by executing just 1-line R script that compiles a single generic LaTeX Rnw template via #knitr 😉  [&#8618;](https://twitter.com/xieyihui/status/1103019230302257152)

<!-- -->


> **Jan Katins** (@jankatins; 5/0): @amuellerml @rasbt @ricardoaraujo @jofr @ProjectJupyter @sarah_guido There are several tries (I did 'knitpy') but somehow this never went far. It might be easier to make jupyter a proper engine in knitr/rmarkdown so you can use all the already done infrastructure from rmarkdown.  [&#8618;](https://twitter.com/xieyihui/status/1102309873763651586)

<!-- -->


> **Nate TeBlunthuis** (@groceryheist; 3/0): @AlexCEngler @juanDenver_ @nnstats Of these, RMarkdown (and even better, knitr for latex) is the only one of these I strongly agree with.  I think preferences about what dataframe abstraction people like are usually driven by what they learned first (i.e. I like Pandas and R data.table but not dplyr).  [&#8618;](https://twitter.com/xieyihui/status/1101005413900673024)

<!-- -->


> **Darren L Dahly** (@statsepi; 3/0): @TunnelOfFire @uri_sohn I'm not sure how far along you are, but we have found having the ability to include a style sheet to control the formatting of the knit docx very helpful + knitr::kable for tables that print well in the docx (or htmltable(), with results = asis in the chunk options).  [&#8618;](https://twitter.com/xieyihui/status/1100781293044940800)

<!-- -->


> **Andrew Heiss, PhD** (@andrewheiss; 2/1): Behold! A great solution via @rmflight! You can’t use YAML for this, but you can use knitr chunk options #rstats https://t.co/4rxUoTnHqH  [&#8618;](https://twitter.com/xieyihui/status/1103007671202930688)

<!-- -->


> **Andrew Heiss, PhD** (@andrewheiss; 2/1): Tricky #rstats / R Markdown / knitr Q I've had for years&amp; finally got around to asking at StackOverflow: Is there a way to use Cairo PNG output in R Markdown documents? ggsave(..., type = "cairo") works for standalone images, but I can't get that in knitr https://t.co/Zj2BKIZxui  [&#8618;](https://twitter.com/xieyihui/status/1102999852256911363)

<!-- -->


> **Andrew Heiss, PhD** (@andrewheiss; 2/0): It turns out that getting biber and xelatex working in knitr / R markdown is nigh impossible  [&#8618;](https://twitter.com/xieyihui/status/1103046136212803584)

<!-- -->


> **Emily Riederer** (@EmilyRiederer; 2/0): Great post and thanks @ijlyttle for an exciting addition to knitr! https://t.co/AsB3yrne7n  [&#8618;](https://twitter.com/xieyihui/status/1103063539235860480)

<!-- -->


> **黒木玄 Gen Kuroki** (@genkuroki; 2/0): #Julia言語
> >
> https://t.co/oACD7Gdrsu
> Weave is a scientific report generator/literate programming tool for Julia. It resembles Pweave, Knitr, rmarkdown and Sweave.
> >
> * Convert to and from IJulia notebooks ←これに期待しているのだがまだ試していない。
> >
> https://t.co/XevkbuFUjI  [&#8618;](https://twitter.com/xieyihui/status/1102603575786496000)

<!-- -->


> **Helgi Eiríkur** (@svelgur; 1/0): @hlynur @pallih Þú varst ekkert að grínast með a nota knitr í alla r-vinnslu!  [&#8618;](https://twitter.com/xieyihui/status/1103248492712157186)

<!-- -->


> **David Keyes** (@dgkeyes; 1/0): @carlmcqueen @superboreen Child documents are discussed here: https://t.co/zkY7gbhhpg I'm using a child document in some slides I'm making here: https://t.co/8mEhg1b7R2  [&#8618;](https://twitter.com/xieyihui/status/1101559280585469953)

<!-- -->


> **michela** (@MichelaRiba; 1/0): @daweonline Better than knitr in R l guess ?   Or  similar in pyton?  [&#8618;](https://twitter.com/xieyihui/status/1101547431190245378)

<!-- -->


> **Ben Anderson** (@dataknut; 1/0): .Rmd, a .bib file, #rstats #knitr #bookdown &amp; a multi-user @github repo is probably the only sensible way to collaboratively write scientific documents (articles, funding bids etc) when the output needs to be an editable word doc.  [&#8618;](https://twitter.com/xieyihui/status/1100567082301718529)

<!-- -->


> **Andrew Heiss, PhD** (@andrewheiss; 0/1): @conjugateprior The way I do it outside of R Markdown is to use pandoc to go from md &gt; tex, then latexmk for tex &gt; pdf (see https://t.co/cNKkTvTMVQ), but it seems I can't do that with Rmd+knitr only?  [&#8618;](https://twitter.com/xieyihui/status/1103073343886909440)

<!-- -->


> **Mareviv** (@maureviv; 0/0): Cool! Some #knitr css classes to mess with... 😏 https://t.co/lcgjiGKgi6  [&#8618;](https://twitter.com/xieyihui/status/1102954441060352000)

<!-- -->


> **R StackOverflow** (@r_stackoverflow; 0/0): RMarkdown: Collapse error message into a single block when the error message is modified to print in red [Votes: 2] #r #rmarkdown #knitr
> https://t.co/NKRwQZT0ng  [&#8618;](https://twitter.com/xieyihui/status/1102454503557812224)

<!-- -->


> **半生** (@2VgNKnBQXTfGmim; 0/0): @Kujiranosekai こちらにbarplotしてるコードがあったので参考にしてみてはどうでしょうか？ https://t.co/uGgfvXRVtn  [&#8618;](https://twitter.com/xieyihui/status/1102188959478632448)

<!-- -->


> **Daniel Possenriede** (@dpprdan; 0/0): @siphre @rstats4ds You have two code chunks called 'setup'. Either rename one of them or there is a knitr option to allow duplicate labels. Are you calling an Rmd from another Rmd?  [&#8618;](https://twitter.com/xieyihui/status/1102104220659007488)

<!-- -->


> **Dwan** (@EnvironmentalND; 0/0): My discovery of #rstats tableone combined with knitr::kable() has seriously changed my life. Need to update descriptive table? Done in 3 minutes.  [&#8618;](https://twitter.com/xieyihui/status/1101392490735652864)

<!-- -->


> **Boris Veytsman** (@BorisVeytsman; 0/0): @HeatherUrry Good work.  Thanks.
> >
> I think using latex and knitr instead of markdown would be even better.  [&#8618;](https://twitter.com/xieyihui/status/1100900054418644992)

<!-- -->


# pagedown

> **R for the Rest of Us** (@rfortherest; 6/3): Need to produce PDFs but frustrated with the default outputs in RMarkdown? Check out pagedown by @xieyihui. https://t.co/vEuYnjLRGO https://t.co/FULpka9AGi  [&#8618;](https://twitter.com/xieyihui/status/1101173957762469888)

<!-- -->


# tinytex

> **Danton Noriega** (@dantonnoriega; 1/0): @andrewheiss Whoops. Tinytex.  [&#8618;](https://twitter.com/xieyihui/status/1103089189510209536)

<!-- -->


> **Michael Sumner** (@mdsumner; 0/0): @millerdl That's not annoying, "DUDE, just use tinytex!"  [&#8618;](https://twitter.com/xieyihui/status/1101137563580956672)

<!-- -->


# xaringan

> **Matt.0** (@MattOldach; 26/5): Made my slide-deck available online for getting started with Drake in #rstats (@wmlandau, @krlmlr etc.), making better figures (faster) with @BioRender, and accessing the Fitbit API with R #dataviz #datascience https://t.co/UwMUAEB0HQ https://t.co/1bGi3ielPt  [&#8618;](https://twitter.com/xieyihui/status/1101241614385799168)

<!-- -->


> **Sharla Gelfand** (@sharlagelfand; 17/0): and here's the repo if you want to play along (or see what suspicious things I did to mess with @Open_TO's data 👀👀👀)! this was my first xaringan presentation and it was an absolute breeze ✨ https://t.co/1ZYxl8z9XI  [&#8618;](https://twitter.com/xieyihui/status/1103113016957157377)

<!-- -->


> **Jakub Nowosad** (@jakub_nowosad; 16/5): A nice set of tips from @xieyihui on how to build incremental slides - https://t.co/MFOTJ2Orq7. One of many useful features of the xaringan 📦#rstats https://t.co/C4nfXImPBu  [&#8618;](https://twitter.com/xieyihui/status/1102565336082198528)

<!-- -->


> **tmrkn** (@tam07pb915; 16/5): 昨日いろいろつぶやいていたxaringanのInfinite Moon Readerの話です。 / Rmarkdownでスライド作るときのリアルタイムプレビュー https://t.co/Utaq2YJ2tR https://t.co/XkDgIW49kq  [&#8618;](https://twitter.com/xieyihui/status/1101802762617192448)

<!-- -->


> **Samantha Toet** (@Samantha_Toet; 3/0): @jsonbaik I prefer using Github pages - then you have everything in one place: https://t.co/LjrY0F1ZNN  [&#8618;](https://twitter.com/xieyihui/status/1100804375101009925)

<!-- -->


> **Sean Hardison** (@SeanHardison; 2/0): I'm new to #xaringan but "yolo: true" is already my favorite feature https://t.co/J7BnaCgP28  [&#8618;](https://twitter.com/xieyihui/status/1102976361021538304)

<!-- -->


> **Ken Bodnar** (@ArtofWarm; 2/0): The Ultimate Infinite Moon Reader for xaringan Slides - Instant preview without fully rebuilding HTML, and the… https://t.co/YKzha74NNq  [&#8618;](https://twitter.com/xieyihui/status/1102188741077188608)

<!-- -->


> **kazutan** (@kazutan; 2/0): @R_beginner いえ、どちらかというとservrパッケージで仮想webサーバーのサービスを起動させて、それを利用してgitpitchのエンジンで描写するって感じです。
> xaringanはこれでremark.jsのリアルタイムレンダリングを可能にしてるんですよー  [&#8618;](https://twitter.com/xieyihui/status/1102008831352037377)

<!-- -->


> **Alison Hill** (@apreshill; 2/0): @i_steves @visnut @xieyihui For now 😇 As a happy ninja user, I have the same all recorded in (what else) a xaringan slide deck currently: https://t.co/rq4Nr7UqWQ
> >
> If you have tidbits to add to this, you could for now use our workshop repo: https://t.co/MqY6ZeL1lU  [&#8618;](https://twitter.com/xieyihui/status/1100781883648962560)

<!-- -->


> **Ulrik Lyngs** (@ulyngs; 1/1): #xaringan tip: Position content easily by including the #bootstrap CSS grid in your YAML header #rstats @xieyihui https://t.co/gi1YDgsqRv  [&#8618;](https://twitter.com/xieyihui/status/1102542688447070208)

<!-- -->


> **Yohan J. Rodríguez** (@hasdid; 1/1): #DataScience  #Automated | "Presentation Ninja" https://t.co/JBugOyTNw3  [&#8618;](https://twitter.com/xieyihui/status/1100890071589359617)

<!-- -->


> **Yohan J. Rodríguez** (@hasdid; 1/1): #DataScience  #Automated | The Ultimate Infinite Moon Reader for xaringan Slides https://t.co/0viQGt0mP3  [&#8618;](https://twitter.com/xieyihui/status/1100890070201053187)

<!-- -->


> **Pimpolha #ATIVIDADE** (@Pimpolha2002; 1/0): @kakashihatax Uchiha, eu ia ter um xaringan (n me julguem,comecei naruto semana retrasada e não sei escrever)  pra  copiar os golpes  de geral  [&#8618;](https://twitter.com/xieyihui/status/1103125621067022336)

<!-- -->


> **Matt.0** (@MattOldach; 1/0): @tangming2005 thought I was so smart making a xaringan slide-deck oh I won't need a usb stick I can just put it on the internet... get's to room and no internet connection 🤣  [&#8618;](https://twitter.com/xieyihui/status/1102693377362018304)

<!-- -->


> **Grant McDermott** (@grant_mcdermott; 1/0): @JonAskonas @andrewheiss TikZ should work automatically if you're knitting to PDF. In addition, I was recently made aware of this drop-in replacement for HTML formats (e.g. Xaringan slides): https://t.co/uUBCxSYhgn  [&#8618;](https://twitter.com/xieyihui/status/1101992485620867072)

<!-- -->


> **tmrkn** (@tam07pb915; 1/0): さっきからいじってるxaringanてやつ、ヘッダーの設定にyoloってのがあって、これtrueにするとランダムでおっさんの画像が挿入されるｗｗｗ 腹痛いｗｗｗ https://t.co/EG5GgR9Btk  [&#8618;](https://twitter.com/xieyihui/status/1101434299369185280)

<!-- -->


> **Soares** (@ramoscapit; 1/0): @RayssaGo1 Tenho olho xaringan, filha! Vejo tudo e todos  [&#8618;](https://twitter.com/xieyihui/status/1101224095956508673)

<!-- -->


> **Yihui Xie** (@xieyihui; 1/0): @patilindrajeets @grrrck Does it work if you click that arrow button and view in a browser? Would you file an issue with your xfun::session_info('xaringan') to the Github repo https://t.co/ynrU2oKTzx? I just tested it on Windows with both RStudio 1.2.1280 and 1.2.1303, and both versions worked fine.  [&#8618;](https://twitter.com/xieyihui/status/1100873547390554113)

<!-- -->


> **Irene Steves** (@i_steves; 1/0): @visnut @xieyihui @xieyihui is the xaringan wiki page a good place for tidbits like this? I also come across a lot of similar revelations that I feel like would more useful recorded outside of my gh repos  [&#8618;](https://twitter.com/xieyihui/status/1100779603109576704)

<!-- -->


> **kazutan** (@kazutan; 0/1): xaringanのmetropolisデザイン、私も好きです #SappoRoR  [&#8618;](https://twitter.com/xieyihui/status/1101723173408526336)

<!-- -->


> **CRAN Package Updates** (@CRANberriesFeed; 0/0): CRAN updates: geostatsp RandomFields TextForecast xaringan https://t.co/y5W2NTKSXT #rstats  [&#8618;](https://twitter.com/xieyihui/status/1103264546460979201)

<!-- -->


> **Marcel Dorta** (@marceldorta; 0/0): Xaringan  [&#8618;](https://twitter.com/xieyihui/status/1102840748335132672)

<!-- -->


> **kazutan** (@kazutan; 0/0): @R_beginner なるほどー。gitpitch用のパッケージ作ろうか思うのですが、md_documentベースになるんでpreviewできない問題が発生しちゃうんですよね。
> xaringanでやってる処理に近いのをやればできるんですが…  [&#8618;](https://twitter.com/xieyihui/status/1102006765707702272)

<!-- -->


> **kazutan** (@kazutan; 0/0): @tam07pb915 (xaringanは仕組みがだいぶ違うものでして……)  [&#8618;](https://twitter.com/xieyihui/status/1101391216510296064)

<!-- -->


> **tmrkn** (@tam07pb915; 0/0): 日本語にするとフォントが微妙になる感はあるのでそれは自分でいじらないといけないかも。それから，xaringan::moon_reader以外のoutputではリアルタイムプレビューできなくて，saveすると勝手にknitしてビュアーをrefreshしてプレビューって感じになる  [&#8618;](https://twitter.com/xieyihui/status/1101390403331346432)

<!-- -->


> **Andrew Leach 🇨🇦** (@andrew_leach; 0/0): Things I should have read more carefully before working through an #rstats xaringan slide presentation. :( Self-contained is an option, but it's hard to implement (read: impossible) correctly (read: for me). https://t.co/Zw52zGgIBr  [&#8618;](https://twitter.com/xieyihui/status/1101631260651208704)

<!-- -->


> **Jason Baik** (@jsonbaik; 0/0): #rstats Question: What are some **easy** ways to publish xaringan slides online?  [&#8618;](https://twitter.com/xieyihui/status/1100794775257653248)

<!-- -->


# yihui.name

> **Alison Hill** (@apreshill; 17/4): @kierisi @EngelhardtCR And it cues you about the last empty line trick- hallelujah!
> >
> https://t.co/Dt4eZG37A8  [&#8618;](https://twitter.com/xieyihui/status/1101868995815268354)

<!-- -->


> **tmrkn** (@tam07pb915; 7/1): ちょっと前にツイッターで見かけたRstudio上でRmarkdownのリアルタイムHTMLプレビューができるってやつ。むちゃくちゃ便利。日本語もいける。/ https://t.co/tLXhLZOCSS  [&#8618;](https://twitter.com/xieyihui/status/1101375669584289793)

<!-- -->


> **Yihui Xie** (@xieyihui; 3/0): @andremrsantos @dataandme You may see @RLesur's comment and my reply at https://t.co/Nv9LVU60Yo The current answer is no, but there is some hope.  [&#8618;](https://twitter.com/xieyihui/status/1100868611416166419)

<!-- -->


