#rstats
Thomas J. Leeper (@thosjleeper; 474/106): The complete transcripts of The Office (US) are now available as an #rstats package, {schrute}.
#r #nlp #tidytext https://t.co/GgsPu6KyDG ↪
RStudio (@rstudio; 348/152): R vs. Python: What’s the best language for Data Science?
Read more on RStudio Blog: https://t.co/h9XutiEC60
#RStats #python #pyData #DataScience #OpenScience #OpenData https://t.co/kq6Kbfczp6 ↪
Dr. Sam Tyner (@sctyner; 260/88): My 10 Tips for Getting Help in R: https://t.co/OxK1iilbsr
TL;DR:
📖Read the docs
🔍Google the error
🧠Search smarter not harder
🔥Burn it all down
🔁Make a reprex
🐦Ask Twitter w/ #rstats
☎️Phone a friend
😴Sleep on it
💬Ask your q on an online community
🙋File an issue on GitHub ↪
Fabio Votta📊🦉 (@favstats; 201/44): I found a really cool tool for drawing diagrams! It’s called {nomnoml}. It’s super easy and intuitive to use, looks pretty, has an #rstats package by @javierluraschi (https://t.co/F4YLxhSMnL) and even a live code editor here: https://t.co/yALBw6PflJ. https://t.co/P67HKd2AEO ↪
Mara Averick (@dataandme; 186/43): 🎄 Day 16 #rstats resource advent:
♻ “A guide to making your data analysis more reproducible” by @_inundata
🗃 slides, resources, vid: https://t.co/oCvPRKbNdj
📄 Incl: Packaging Data Analytical Work Reproducibly Using R (and Friends) by @benmarwick, @cboettig, & @lincolnmuller https://t.co/4PHATtsMde ↪
blogdown
Andrew Heiss, PhD (@andrewheiss; 48/10): The content is fairly sparse (since I add assignments and class materials along the way), and the dates are still wrong, but here’s my newest #blogdown #rstats program evaluation/causal inference course website using the delightful Hugo Academic theme! https://t.co/E5Qvp33w9Z ↪
James Wade (@JamesHWade; 46/20): I wrote a blog post on the measles and vaccines plot from my #TidyTuesday contribution. It was fun to learn #blogdown making the post. Feedback is encouraged! Should I do more?
blog post: https://t.co/1hmFisIueU
#rstats #r4ds #dataviz #datascience #vaccines #VaccinesWork https://t.co/VtfjFkqh60 ↪
We are R-Ladies (@WeAreRLadies; 41/8): I have learned a lot about git in the last few weeks. I started using github when I first began using blogdown. Deploying your blog via github pages or netlify is a great way to tip your toes. #rstats ↪
Meghan Hall (@MeghanMHall; 39/4): The #blogdown package is AMAZING. I have a brand-new website, built entirely in R 🙏 https://t.co/fDXAOkpLMn ↪
Marvin Law (@MarvinLaw_; 7/2): After following some great guides from @dsquintana and guidance from @AnanthanAmbi, my personal website is up and running using the blogdown package! #rstats #rlearning #tidyverse #blogdown
https://t.co/iNtInuaMvj
Thanks for all the help and higly recommend! ↪
Justin Nix (@jnixy; 4/0): @bethtris I made mine using the blogdown package in R. @dsquintana’s blog was super helpful!
https://t.co/u3a8VMhmop ↪
Meghan Hall (@MeghanMHall; 3/1): This resource was the most helpful: https://t.co/vv7zEEa3vm
And I got a bunch of tips from this one, too: https://t.co/36uaQcTdKI
https://t.co/agP07SXxS3 ↪
tidyverse tweets (@tidyversetweets; 3/1): Posting xaringan presentations on blogdown…how do I display it? #tidyverse #rstats https://t.co/XaOAA9N7OB ↪
Dweepobotee Brahma (@Dweepobotee; 1/3): Dear #rstats I just updated hugo and blogdown versions to update my personal website and all hell broke loose. Any leads to a tutorial/blog post on update your academic website using hugo? Most of the existing posts are on creating websites for the first time.@RLadiesGlobal ↪
the Eshleman Papers (@eshlemanchris; 1/1): @znmeb @Voovarb blogdown? distill? Jekyll? pkgdown? I’m a regular R user but my head’s spinning #rstats #myheadhurts ↪
(((Lukas Kawerau))) (@LukasKawerau; 1/1): More generally applicable - RMarkdown and @rstudio. Makes blogging, writing and adding analysis to both so much easier and better. Thank you @xieyihui for your work on blogdown, bookdown and everything else in the space! ↪
Taras Kaduk (@taraskaduk; 1/0): @sellorm LOL, “I updated blogdown and my theme and now things don’t quite look right” is my status ↪
Karlo Guidoni Martins (@kguidonimartins; 1/0): @juditecypreste blogdown em R. ↪
Matt.0 (@MattOldach; 0/1): Hey #rstats who are #blogdown-savy. I’ve usually served projects as external links to Medium but want to change now it’s behind paywall. Cannot figure out how to get image preview on main page working for took long. Probably a simple fix for this 😪 https://t.co/xPMmOwSnL9 ↪
Andrew Heiss, PhD (@andrewheiss; 0/1): Hey #rstats #blogdown #hugo world! Can anyone help with this obscure issue? Using
toc: true
in Rmd files does weird things that don’t happen in regular markdown files https://t.co/oqb0SiLtMa ↪
bookdown
Robin Lovelace (@robinlovelace; 67/17): Textbooks are too expensive. Another motivation for #opensource + online academic materials to add to the list:
✅ reproducibility
✅ build communities
✅ crowd-sourced peer review, supplementing formal processesGreat selection of open source books: https://t.co/l2LpWZkmK2 https://t.co/KfcAz8C3MA ↪
Murray Cadzow (@MurrayCadzow; 65/14): After battling for hours to get a bookdown github action I have finally done it and we’re using it to create our github actions with R bookdown book https://t.co/HW5zVSMpzV made during @rOpenSci #ozunconf19 ↪
Kazuki Yoshida (@kaz_yos; 59/11): Course Handouts for Bayesian Data Analysis Class https://t.co/SuDCEM5WFv “course handouts for PSYC 621 class. The materials are based on the book by McElreath (2016), the brms package (Bürkner 2017), and the STAN language.” ↪
りつ (@ritsu1997; 57/22): 久米ゼミのプレゼミでRの勉強会をした。
まだ未完成だけど、「何も知らない状態から、とりあえずRでなんちゃって重回帰分析ができるようになる」がコンセプトの拙稿をよろしくお願いします。(お気付きの点があればDMで優しく教えてください)
https://t.co/M5qHNBiTxG https://t.co/3gWQXGFrDn ↪
\mathfrak{Michael “El Muy Muy” Betancourt} (@betanalpha; 30/2): To avoid any confusion, the thing I made was just the bookdown styling. I still have a few more case studies (which are all just proto-chapters) to write and then I have to edit/update all of the rest. I hope to have a draft of a Part I ready by the middle of 2020. https://t.co/spfzBfFDFv ↪
We are R-Ladies (@WeAreRLadies; 17/1): Have I convinced you to try blogdown?? Good… but now I hear you ask… how? Here are my fav tutorials. The RMarkdown whisperer @apreshill is a blogdown queen. She literally wrote the book https://t.co/RtGZ67eiif and the tuts on her blog are awesome https://t.co/sDvPOnFduG 1/n https://t.co/aGJxSjTZZD ↪
Hok Chio (Mark) Lai (@marklhc; 12/5): @GRich_Cinci @NicoleBarbaro @drjuliashaw And @GRich_Cinci, I just finished the Bayes class this semester, and maybe you’re interested in the updated notes: https://t.co/a31lCkleu8 ↪
emre toros (@emretoros; 11/5): @AkinUnver @pinardag https://t.co/JIkpEDd7CB şuraya bırakayım Türkçe kaynak isteyenler için belki faydalı olur ↪
Steph Stammel (@StephStammel; 8/2): CIsandbox! Make stuff happen when you push to GitHub..!! https://t.co/1Fucnw1HQ7
Gentle introduction to GitHub actions with R - help files, bookdown, how to get started. A hug in an rmarkdown form! #ozunconf19 ↪
new JiminyPanoz(tweet) (@JiminyPan; 6/1): Then, and it’s mind blowing, very popular tools you may not have heard about…
- Bookdown https://t.co/h8lMpOjcYT
- AsciidocFX https://t.co/29FV5GGT5J
- Booktype https://t.co/qG0hbCIziW
- Easybook https://t.co/gEhyrwnnhk
- Kitabu https://t.co/dvpBmpXBBs
… ↪
David John Baker, PhD (@DavidJohnBaker; 6/0): 100% agree to this. The future of sharing information is the internet. This (and more) were reasons I spent untold hours writing my dissertation in #bookdown so people wouldn’t have to rummage through a pdf to engage with my research.
https://t.co/f1DaX2ERJv https://t.co/psGYRfqsaE ↪
Thomas Mock (@thomas_mock; 5/2): @eamcvey @grrrck @hrbrmstr @JianghaoWang As far as calling the finale template:
- If in a package you can actually call it as a normal .rmd template and can then code as normal!
https://t.co/X1cT9EinYn- If the SAME report each time, you can go with paramaterized .rmd
https://t.co/oay41NDmZD ↪
Oli Clark (@PsyTechOli; 5/0): Compiling my #thesis in #bookdown https://t.co/jPadwpS5CX ↪
Chase Clark (@ChasingMicrobes; 4/3): …That’s a proper lab notebook size 😲
#rstats
#rmarkdown
#bookdown
#organizeAllTheThings https://t.co/g0ltdDlu5l ↪
Thomas Mock (@thomas_mock; 4/3): @eamcvey Thread of Resources!
Template Structure:
- https://t.co/X1cT9EinYn
- https://t.co/Lhk6bzR94n
These cover the necessary minimal files (template.yaml + skeleton.rmd) along with supporting files (logos, css style sheets, HTML).
Simple package recommend way to share/store template ↪
\mathfrak{Michael “El Muy Muy” Betancourt} (@betanalpha; 4/1): Anyone know if it’s possible to hack bookdown to collapse groups of chapters together in the table of contents? In particular into PARTS headings? I’d love to have a TOC that starts with the Part titles and then expands to the chapters (and sections within chapters) from there. ↪
Nicholas Yarmey (@NickYarmey; 4/1): @lkeenereck @rstudio Let’s chat - I’ve been doing this for the last two weeks! I think rmarkdown will be the way to go. I’ve been having good luck with parametrized reports in markdown https://t.co/B594fcbsHj ↪
Thomas Mock (@thomas_mock; 3/1): @eamcvey Converting HTML into RMD Theme:
- Borrow/examine code from others https://t.co/FnzsiYYvQQ
- ^ readtheorg example original HTML https://t.co/ABGfPWpThI
This MAY require diving into pandoc OR doing specific conversion of HTML to supporting file for .rmd https://t.co/2MWVW9Hw3p ↪
\mathfrak{Michael “El Muy Muy” Betancourt} (@betanalpha; 3/1): @ChadScherrer @lauretig Bookdown (through pandoc) will give me LaTex and epub, although I’ll have to spend time getting them formatting how I’d like. Definitely part of the plan, but will come later. ↪
Maurício Vancine (@mauriciovancine; 3/0): Bayesian Hierarchical Models in Ecology
https://t.co/kmPMfzuXzA ↪
Murray Cadzow (@MurrayCadzow; 3/0): @ma_salmon @rOpenSci Yeah, it will compile a bookdown book on a pr to master then copy the html to the hh-pages branch ↪
Richard Careaga (@technocrat; 2/2): @dgkeyes I don’t have any in-house examples to share, but just about everything you need can be found from the author’s book at https://t.co/s0r7T42vzR However static reports lack functionality for management to vary assumptions to get desired results. Consider RStudio shiny dashboards ↪
emre toros (@emretoros; 2/1): @DagmedyaVeri Türkçesi ve Twitter uygulaması için https://t.co/JIkpEDd7CB adresindeki 9. bölüme bakılabilir… ↪
Deemah 🇺🇦 🇳🇴 🇸🇪 (@dmi3k; 2/0): #lazytwitter what are your recommendations for monkeying Travis setup for rendering and deploying {bookdown} projects? I know @xieyihui has a chapter https://t.co/UK4MUeIHPL on this. I just want to see examples of how it is done in real life. ↪
Dr. Holland D (@DocHollandD; 2/0): @Caitydid685 @graymagiker @MartynEcology @BeltzEcology https://t.co/oSdksdtxNt is a good thread - the R Reddit community is nice and responsive, https://t.co/kj3sXhcDUx is also a good resource. And this book is something I love so much I bought the paper version https://t.co/tbiM6TI2B4 ↪
Thomas Mock (@thomas_mock; 2/0): @eamcvey If don’t want to build out a WHOLE theme, can customize portions:
- https://t.co/Y413weo8sH
- Custom .css classes (@grrrck ) https://t.co/Lcm8arc9rs ↪
Maurício Vancine (@mauriciovancine; 1/1): Noções de Inferência no R
Thalita do Bem Mattoshttps://t.co/a02l0hzqxB ↪
Malcolm ‘Yuletidy’ Barrett (@malco_barrett; 1/1): @juliasilge Oh, me too. Although I do hope that someday someone puts together a good bookdown on the various #rstats GitHub options like travis.yml (I toyed with putting helper functions for setting them up in ymlthis, but I just don’t understand them well enough!) ↪
(((Lukas Kawerau))) (@LukasKawerau; 1/0): Serious question: if you’re writing technical books today, is there anything better than R bookdown? https://t.co/G3TdVxQvNm ↪
John T. Johnson 🧠 Luctor et Emergo (@John4tl; 1/0): @lkeenereck @rstatstweet @rstudio Bookdown might be helpful.
https://t.co/AK4fskdUBy ↪
tidyverse tweets (@tidyversetweets; 0/1): bookdown adding abstract before the table of contents #tidyverse #rstats https://t.co/GrBTT6wpYD ↪
knitr
Davis Vaughan (@dvaughan32; 169/34): I’ve been experimenting with a new 📦 to lower the barrier for working with C in R. My favorite features:
source_function()
to compile a C function from text on the fly and generate an R function.
- A knitr engine for use in R Markdown!
https://t.co/31SiPFfeg0 #rstats https://t.co/ftHcRbHyZW ↪
Romain François 👨👧👧 (@romain_francois; 22/3): There definitely was a before and after #knitr in the #rstats world. 🙏 @xieyihui. ↪
Romain François 👨👧👧 (@romain_francois; 12/1): #knitr joins the #hexmas 🎄 today. https://t.co/tprKFxxNjI ↪
Programmer Books (@ProgrammerBooks; 5/7): Dynamic Documents with R and knitr, 2nd Edition ==> https://t.co/oEwqrZusUJ
#python #javascript #angular #reactjs #vuejs #perl #ruby #Csharp #Java #linux #programming #network #security #golang #coding #ionic #android #ios #DataScience #development #ArtificialIntelligence https://t.co/JGnJKbboJ5 ↪
Thomas J. Leeper (@thosjleeper; 4/2): How do you set the width of a PDF table column from rmarkdown using knitr::kable(). I’m trying kableExtra but getting the cryptic “! Use of @array doesn’t match its definition.” error. #rstats ↪
animated JPG (@jasongrahn; 1/0): Lesson learned:
glimpse(data) %>% knitr::kable()
is a bad idea with a lengthy data set. ↪
Paulina Mr (@paumorrr; 1/0): @lecuacion hola Prof!! Para la entrega final, no me deja pasar los modelos con stargazer o knitr para hacer tablas con un formato bonito! Alguna sugerencia para que se pueda? Me sale “cannot coerce lm into data frame” ↪
Overleaf (@overleaf; 1/0): @awunderground glad that it helped! You can inject a little literate statistical programming with knitr (https://t.co/8e3jFBvz92) and other packages which allow you to integrate code into your LaTeX documents - interestingly Donald Knuth invented TeX and coined the term ’literate programming’ ↪
tidyverse tweets (@tidyversetweets; 0/1): Knitr button completely unresponsive #tidyverse #rstats https://t.co/ITUOLlZxf8 ↪
tidyverse tweets (@tidyversetweets; 0/1): knitr with ggplot and colorspace: object not found error #tidyverse #rstats https://t.co/aiVC8uwmsH ↪
pagedown
Thomas Mock (@thomas_mock; 5/1): @eamcvey @grrrck @hrbrmstr @JianghaoWang Lastly - as far as printing from HTML to PDF (and not needing to also maintain a LaTex framework)
- Enter {pagedown} https://t.co/3ftvjYybfP
- Keep all the HTML goodies for web and then save output to PDF ↪
xaringan
Howard Baek (@howard_baek; 8/3): #rstats Question about xaringan:
I’m not sure how to insert Twitter / LinkedIn / Email icons in my last slide to redirect the viewer to my contact information. I’ve though about using images somehow…
Isn’t there a simple way to do so using css / html?
@xieyihui @apreshill ↪
Ryan Briggs (@ryancbriggs; 6/1): I went with xaringan, mostly so that I could have a slide deck with nice themes, incremental reveals, R code, live graphs, and of course gifs. For what I want to do xaringan feels a bit like using a cannon to kill a mosquito, but maybe I’ll grow into it. https://t.co/Unc91Gh6Wo ↪
R-Ladies Barcelona (@RLadiesBCN; 6/1): Now @aniabmsi will introduce us to the #rmarkdown friends: xaringan, rticles, pkgdown and many more! https://t.co/Epc8kppPFr ↪
Leon Eyrich Jessen (@jessenleon; 5/4): Doing #dataScience in #Rstats using #Tidyverse 💻📊📈📉, I’ve always been a huge fan of the convention of naming your functions according to what they do… So, what’s this all about?
- xaringan::infinite_moon_reader() @xieyihui ?
- parsnip::bake() @topepos ? https://t.co/jDoVDR6Jce ↪
James E. Pustejovsky (@jepusto; 3/0): @maibennett https://t.co/cDbiB6jZJm ↪
Nick HK (@nickchk; 3/0): @ryancbriggs @Andrew___Baker @paulgp @ApoorvaRed I also ended up using revealjs for my class since ioslides was missing some things I wanted and I couldn’t get xaringan to work at all. My code is here: https://t.co/sayTUqZwHu ↪
Grant McDermott (@grant_mcdermott; 2/0): @Andrew___Baker @ApoorvaRed @paulgp @ryancbriggs This is because you don’t want to host on a public GitHub repo (and render with raw.githack), right?
An alternative is to convert to PDF. I use and recommend decktape.js https://t.co/XbiirwiqCE
You can even include the final
system("...")
call in your Rmd file. ↪
Ryan Briggs (@ryancbriggs; 2/0): Up to now I have always used Keynote for presentations. For an undergrad methods class, I’m looking to use some R markdown-type format (R Presentations, slidy, ioslides, xaringan) so students can look under the hood. The ecosystem seems messy though. Anyone have a recommendation? ↪
Will Wheeler (@willwheels; 2/0): @Andrew___Baker @ApoorvaRed @paulgp @ryancbriggs This is a helpful thread. I’ve been trying to switch to R Markdown and it’s not clear what the best presentation format is. I had the same worry about xaringan, I liked reveal, but tried Beamer anyway…and the slide title fonts were garbled when I presented, ffs. ↪
Andrew Baker (@Andrew___Baker; 2/0): @ApoorvaRed @paulgp @ryancbriggs I think xaringan was pretty clear in their write up that it wouldn’t compile to locally. https://t.co/kP467yS1bR ↪
Paul Goldsmith-Pinkham (@paulgp; 2/0): @ryancbriggs I couldn’t get xaringan to work with what I wanted, so ended up using revealjs in Rmd. Agreed that the ecosystem is a bit confusing. I missed beamer many times when I worked with Rmd. ↪
karolou🧚🏻♀️ (@karlolics; 1/0): ativei o xaringan do fodase ↪
Ryan Briggs (@ryancbriggs; 1/0): @jb_duckmayr Keynote is just less ugly PowerPoint, but I’ve lots of experience with R markdown. I went with xaringan and it seems to be working fine. https://t.co/GOdTJwNEqD ↪
Apoorva Lal (@ApoorvaRed; 1/0): @Andrew___Baker @paulgp @ryancbriggs huh. i hadn’t tried with xaringan, but it seemed to work fine w vanilla html pages [with interactive / plotly figures and the like]. if you need xaringan, you could try working out of a single gist and using https://t.co/ZmQiSaROSd to render on either end. ↪
Andrew Baker (@Andrew___Baker; 1/0): @paulgp @ApoorvaRed @ryancbriggs yes please + 1. My real problem with xaringan is that it doesn’t compile to an html, so if you’re working with someone else it is kind of a disaster. Does revealjs get around that? ↪
Andrew Baker (@Andrew___Baker; 1/0): @paulgp @ApoorvaRed @ryancbriggs Sorry it doesn’t compile to a local html file. So if I knit a regular beamer RMD I can just share it, e.g. by email, with a coauthor. With Xaringan I have to upload it to my website. ↪
Andres Karjus (@AndresKarjus; 1/0): @nerdpro @DingemanseMark @decksetapp I’ve been using (R) markdown for slides for the last ~2y, both conferences & the dataviz workshops. The writing part is indeed nice, it’s just a text file, though fiddling with the layouts to make it look decent in the end can be… fiddly. Packages like xaringan are nice though. ↪
Matt Haffner (@geo_haffner; 1/0): I believe I have found the presentation framework to end all presentation frameworks: @xieyihui’s xaringan. ↪
yihui.name
Richard Careaga (@technocrat; 1/0): @matloff Yihui Xie has a very interesting take on the underlying differences between R and Python at https://t.co/3NRut6W0RM that arise from orientation to the problem vs the solution ↪