My first major PR as an @rstudio summer intern has been merged! #ggplot2 now has a new vignette on best practices for using it within an #rstats ๐Ÿ“ฆ. If you have an #rstats ๐Ÿ“ฆ that uses ggplot give it a read and let me know what you think! https://t.co/mdGGAtPgEq

2019/06/05

#rstats

Dewey Dunnington (@paleolimbot; 45192): My first major PR as an @rstudio summer intern has been merged! #ggplot2 now has a new vignette on best practices for using it within an #rstats ๐Ÿ“ฆ. If you have an #rstats ๐Ÿ“ฆ that uses ggplot give it a read and let me know what you think! https://t.co/mdGGAtPgEq

Garrett Grolemund (@StatGarrett; 390124): Thank you @khailper for a #gganimate #rstats cheatsheet. Animate ggplot2 plots! Available at https://t.co/OZVUTm5lDl @rstudio https://t.co/9pmQy7VQ6J

Mara Averick (@dataandme; 36589): Fab intro to one of the ๐Ÿ ggplot2 extensions! ๐ŸŒˆ “gghighlight: Highlight ggplot2 w/ predicates” by @yutannihilat_en https://t.co/x7N2ogvwSi #rstats #dataviz https://t.co/MYLRBMWlKS

Claus Wilke (@ClausWilke; 35198): I prepared step-by-step instructions for reproducing a few of the figures from my book. #rstats #ggplot2 #dataviz https://t.co/fe7vO3wwAN https://t.co/G5Lk4K91gU

David Robinson (@drob; 32156): Just learned about a new feature in dplyr 0.8.0: you can pass a name = argument to count() if you don’t want it to be n > No more count() %>% rename()! ๐Ÿฅณ > #rstats https://t.co/il7yIRX5Bw

Steen Harsted (@SteenHarsted; 24259): Please check out the very early version of mocapr. An R-package to animate motion capture data. https://t.co/R52zU4be05 Feedback is most welcome. @thomasp85 @SDUIOB #rstats https://t.co/QZHnFDqspC

Kirk Borne (@KirkDBorne; 21494): One of my all-time favorites >> The Most Complete List of the Best Cheat Sheets for #DataScientists covering #AI #NeuralNetworks #MachineLearning #DeepLearning #BigData #DataScience #DataViz #Python #Rstats #Coding etc. โ€”โ€” ๐Ÿ‘‡๐Ÿ‘‡ https://t.co/r8WpZ0NDgS https://t.co/F0yoDTTwo2

Sharla Gelfand (@sharlagelfand; 18540): today my work released our annual report on Ontario’s nursing registration exams and i’ll let you in on a little secret: it was completely built using #rstats. begin thread! > ๐Ÿ“ฐ: https://t.co/mT4JrF2KnF

R-bloggers (@Rbloggers; 17660): Become a Bayesian master with bayestestR (0.2) {https://t.co/FXhD31Qbth} #rstats #DataScience

blogdown

Alison Hill (@apreshill; 18840): Slides from my #SDSS2019 talk on teaching #blogdown… > https://t.co/h5ynKyqwFv > 3 ๐Ÿ”‘ points: > โฑ๏ธ Leave 60-90 mins to cover ๐Ÿš€ Minimize time-to-deploy (you can get a share-able link in 15-20 min using @Netlify Drop: https://t.co/ouSTFvHuu2) ๐Ÿ–ผ๏ธ Pick a good theme (I have 3 faves) https://t.co/7w93Tcp9Wx

Alison Hill (@apreshill; 624): Heading out to @SDSSconf in Bellevue, WA- excited to share my experiences and lessons learned from teaching #rstats #blogdown in the classroom ๐Ÿ™‡๐Ÿพโ€โ™€๏ธ Thursday @ 4pm (+ @rudeboybert!) > https://t.co/ynyJAElZaM > (link to slides not active yet- which are OF COURSE totally done ๐Ÿคฃ) https://t.co/h0R5q7hOrn

Mara Averick (@dataandme; 387): ๐Ÿคฏ Woah! @jdatap has “Academic theme” night mode! ๐ŸŒ“ “Posts | John (JP) Coene” https://t.co/1olKfr28Zq #blogdown #hugo https://t.co/ggcVd1NWOf

We are R-Ladies (@WeAreRLadies; 332): What did I do so far using #R? I created my own website with ao a list of my publications (Hugo, blogdown/Rmarkdown): https://t.co/SL68GPYSHq > I saw it on twitter and thought: oh my, that’s way to hard, but it really wasn’t! If I can do it, you…well, you know what I mean! ๐Ÿ‘

R-Ladies Berlin (@RLadiesBerlin; 92): Instead of writing your blog alone at home, come and join us at today’s meetup which covers blogdown ๐Ÿ’ฏ > https://t.co/Opv5D648lS

Alison Hill (@apreshill; 70): Also featuring some of my favorite #blogdown sites by @ProQuesAsker, @rudeboybert, and @statsgen ๐Ÿฅฐ๐Ÿ˜

Noam Ross (@noamross; 62): Free idea (meaning, someone plz do this):

authors: r pkg::rnd("Author A", "Author B", ...)

But as an htmlwidget so it’s different each time you reload the page. Bonus for blogdown compatibility. #rstats https://t.co/HvgA3OtDeZ

Jozef Hajnala (@jozefhajnala; 30): A bit ago I wrote about how to port and redirect a blogdown (or any #gohugo) website to a custom domain (https://t.co/W6QJQUPNZT) and suggested how to do it easier. > After actually doing it (for a subdomain), I must say @Netlify is amazingly convenient, 301 redirects included. https://t.co/gdpQHXBayl

Jozef Hajnala (@jozefhajnala; 11): Also, it has a website, where you can see all the posted ๐Ÿ“ˆ interactively, such as: https://t.co/tacT0k5DJv. Made entirely with #rstats as well, thanks the amazing #blogdown package (and @GoHugoIO).

Benjamin Gravesteijn (@BGravesteijn; 11): @eKrijkamp Thanks! I made it with #rstats: blogdown!

boB ๐Ÿ‡ทudis (@hrbrmstr; 10): @KenButler12 @noamross If {blogdown} then https://t.co/TAN1gfTYAG shld be where you remove your shortname https://t.co/Ps1jhXPB9P

Eric R. Scott (@LeafyEricScott; 10): Boy, @xieyihui isn’t kidding when he says not to update Hugo or your theme unless you really really need to. Just broke my #blogdown website pretty bad and had to load backups and downgrade. Gonna need a BIG chunk of time if I want to do this right.

alex hayes (@alexpghayes; 10): @gvwilson @hrbrmstr @noamross I’ve heard this but have no idea how to integrate with blogdown. @apreshill have you seen any examples of making this go?

ใƒดใ‚ฃใƒณใƒ†ใ‚ฃใƒผ@T/T (@vin_tea01; 10): blogdownใง้–‹็™บใ™ใ‚‹ใƒกใƒชใƒƒใƒˆ ใƒปRStudioใง้–‹็™บใงใใ‚‹โ†ๅ€‹ไบบ็š„ใซๆœ€้ซ˜ ใƒปใƒ–ใƒญใ‚ฐ็”จ้€”ใชใ‚‰้™็š„ใ‚ตใ‚คใƒˆใงๅๅˆ†ใจใ„ใ†ใ‹้‡‘้Šญ็š„ใซใ‚‚้€Ÿๅบฆ็š„ใซใ‚‚ใ“ใฃใกใฎใŒใ‚ˆใ•ใใ† ใƒปGitHubใงใƒใƒผใƒ ใงๅ…ฑๅŒ้–‹็™บๅฏ่ƒฝ(ใฏใฆใƒ–ใƒญใจใ‹ใซๅฏพใ™ใ‚‹ๅ„ชไฝๆ€ง)

bookdown

Sharla Gelfand (@sharlagelfand; 902): the ๐Ÿ”ฅ entire thing ๐Ÿ”ฅ is built, end-to-end, into an R package that uses the tidyverse, usethis, bookdown, and kableExtra. https://t.co/B4gwGLPjGQ

Mike Love (@mikelove; 6318): Some similar sets of notes & books we recommended to our class: > Hao Wu: https://t.co/I0zhMIy6d5 Ryan Tibshirani: https://t.co/gCX4pQTF3w @rdpeng: https://t.co/SwDg9XABzn @csgillespie & @robinlovelace: https://t.co/8q8k2p0nL8 @hadleywickham: https://t.co/oX6G7hgXOZ

Sharla Gelfand (@sharlagelfand; 180): it’s all bookdown and kableExtra with a little (but not too much!) LaTeX spice to make things look just so. tables like this are automated ๐Ÿ˜Ž (and up to 8 pages long!) https://t.co/WKlTTc121J

Statisticians and Data Scientists (@statsanddatasci; 148): ๐Ÿ“š๐Ÿ’ปLibros en linea totalmente gratuitos๐Ÿ‘‡ https://t.co/7f3ZtSRQcD > #DataScience #statistics #dataanalysis #stats #maths #rstats #rstatses #bookdown #rstudio #machinelearning #deeplearning #estadistica #cienciadedatos #analisisdedatos #DataViz #RMarkdown #TextMining #statistician https://t.co/kMxy0Pqz6a

Christina (@canoodleson; 122): Alicia Johnsonโ€™s presentation on bookdown is so cool and modern ๐Ÿ˜Ž#SDSS2019 https://t.co/nwZTLO0NAr

Charles T. Gray (@cantabile; 101): TIL bookdown:: does math environments. > https://t.co/p6GpK5YG8x https://t.co/efYESeJLdX

Yihui Xie (@xieyihui; 92): @contefranz @rstudio This is not impossible but not trivial to implement. I’d suggest you preview HTML output instead of LaTeX/PDF using xaringan::inf_mr() as you develop the document: https://t.co/ES6sTcx2T5 This way, the scroll position will be preserved when the output is (automatically) refreshed

Steve Haroz ๐Ÿ“Š๐Ÿ‘๏ธ๐Ÿง  (@sharoz; 70): @LacePadilla @mjskay This might be a good start https://t.co/eSkFvIvvKz

Miles Ott ๐Ÿณ๏ธโ€๐ŸŒˆ (@Miles_Ott; 60): @ScotinaStats @StatsbyLopez @MineDogucu @Macalester @CRC_MathStats We are writing the book in #Bookdown, and it will have a print version for purchase and a free and open source online version

Keep It Surly (@surlyurbanist; 60): Experimenting with bookdown for final formatting of the dissertation and, man, this is one of the few things from the RStudio folks I just donโ€™t think is well explained at all

Dr. GP Pulipaka (@gp_pulipaka; 520): Authoring Books and Technical Documents with R Markdown. #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT #PyTorch #Python #RStats #TensorFlow #Java #JavaScript #ReactJS #GoLang #CloudComputing #Serverless #DataScientist #Linux #Books https://t.co/PDt1Zz6MYj https://t.co/cRIEQPjNc2

Omni Analytics Group (@OmniAnalytics; 46): We missed the chance to hang out with our #rstats colleagues at the #SDSS2019 #datascience conference that wrapped up Saturday. To make ourselves feel better, we compiled some of the highlights into a #bookdown #tweetbook. Have a look! > https://t.co/czrGRoVKi1 https://t.co/db2KNZZoiQ

Charles T. Gray (@cantabile; 41): TIL bookdown:: has a sepia option. > Really makes the draft motivational pictures at the start of every chapter in my thesis pop. ๐Ÿฅ https://t.co/ypaob1Iwoa

Hannah Blackburn (@hannah_h_b; 40): @DinaPomeranz Principles of Econometrics with R (https://t.co/zNzmGLrQ81) by Constantin Colonescu (2016) #R4Econ

Frans van Dunnรฉ (@fransvandunne; 22): Por cierto, la presentaciรณn y con todos los vinculos esta aqui: > https://t.co/bV5b5J9UaH > (puedes ir a la pagina siguiente usando la barra de espacio en tu teclado)

Eric Green (@ericpgreen; 21): If you have experience creating or modifying #bookdown or #learnr templates please consider taking my (institution’s) money. I’m looking for help customizing templates for an open access course. #rstats > https://t.co/3YM40ZuBSs > (live shot of me trying to fix these templates) https://t.co/fja68z3tn2

Fabian Dablander (@fdabl; 21): Does anybody know how to get Stan syntax highlighting to work with rmarkdown? Simply doing >

as described here (https://t.co/ll4y0jotwx) does not seem to work.

Bahareh Heravi (@Bahareh360; 20): New book: Statistical Rethinking with brms, ggplot2, and the tidyverse https://t.co/HxEERF212S

David John Baker, PhD (@DavidJohnBaker; 11): Can someone point me to a #LaTeX / #rstats #Bookdown person that would be willing to help me with a few formatting questions? I have some requests from the grad school for my #phd thesis that will make it look worse, but have to do to get it uploaded. I’d happily pay for time.

Jonathan Regenstein (@jkregenstein; 11): @JoannaMelon I’m trying to use data.tree in bookdown and having some issues. any recommendation for a flowchart/decision tree visualization package? thanks! #rstats

Jessica Streeter (@phillynerd; 10): @sharlagelfand This is AMAZING ๐Ÿ™Œ But the real question is how did you do the fancy cover page? Haven’t figured it out in markdown, now wondering if it’s a feature of bookdown?

Nayef Ahmad (@NayefAhmad4; 10): @sharlagelfand This is amazing! How hard is it to get bookdown to deal well with splitting tables across PDF pages, and moving figures around sensibly?

Stas Kolenikov (@StatStas; 10): @dataandme @_inundata @gdequeiroz #bookdown this

knitr

Jo Etzel (@JosetAEtzel; 285): Just about ready for my “knitr for neuroimagers” #OHBM2019 #OSR lightning talk next week: a quick pitch for #rstats, #knitr, and dynamic report generation in general. https://t.co/W5i2I5imCT

Simon Schwab (@SimonSchw4b; 82): Important meta-analysis on response to antipsychotics using R and knitr with code and data available on OSF. Excellent work & congrats! https://t.co/4xumuIOD3d

Benjamin Wolfe (@BenjaminWolfe; 42): 1/ #rstats #tipoftheday > Using #knitr chunk options you can set HTML classes in really fine-grained ways: > ```{r my_code, class.source=“.foo”, class.output=“.bar”, class.message=“.hello”, class.warning=“.world”, class.error=“.oops”}

code

``` > You can use those classes in CSS.

Rodrigo Miranda (@peregrinrm; 41): @lmonasterio Criei um exemplo no RStudioCloud: https://t.co/iFQ5Tc5LLO No RStudio 1.2 ao criar um doc rmarkdown ele instala as bibliotecas e pede para escolher um template. Escolhe o Presentation/PDF(Beamer). Gera o PDF rodando o knitr. Espero ter ajudado.

Benjamin Wolfe (@BenjaminWolfe; 12): 22 #rstats question, piggy-backing on that. > class.output sets the class of #knitr text output. > I haven’t seen an option to set the class for a plot or other image output. (also haven’t seen it for “as-is” HTML tables, but I get that.) > does it exist? @xieyihui maybe?

Taylor (@Taylor50041702; 12): Itโ€™s good to be teaching linear models this summer. Shaking off some rust and learning more about making slides w/ #rmarkdown and #knitr https://t.co/1tWK72gybt (in progress) #rstats

Jo Etzel (@JosetAEtzel; 10): @derek__beaton Some neat examples; I’ve made very complex knitr documents, but never attempted citations!

Hao Ye (@Hao_and_Y; 10): @rasmus1610 @TexanDhillon @rstatstweet IIRC, getting tables in Rmarkdown output using knitr::kable (or other packages) works pretty well, but getting a MS Word output that is a MS Word table is a known pain. (not sure if there’s a good way to do that)

Gjalt-Jorn Peters (@matherion; 10): @djnavarro @rubenarslan So basically you just put everything in an .Rmd file without the YAML, and then pass that through knitr in a function where you make sure that whatever it needs in terms of objects with ‘content’ is available. > Ok, maybe it is getting too late, sorry ๐Ÿ™‚

Matt Crump (@MattCrump_; 10): 1) code might run in the editor because the necessary bits are already loaded into the current global environment…However, the global environment is not used by knitr, because it loads a new R session, and creates a different global environment

Matt Crump (@MattCrump_; 10): Set global options for how all code chunks are rendered > {r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE, eval=TRUE, message = FALSE, warning = FALSE)

Matt Crump (@MattCrump_; 10): Oh no…I was writing just fine, everything was ok, and then I made a table with knitr::kable()…no table was made. Argh. this will not do. must have nice tables.

CSS OSS (@oss_css; 0/1): markdownposter - first cut at using markdown, knitr, pandoc, wkhtmltopdf, and css to create… https://t.co/RhgKfaeKlt

David Reinstein (@daaronr; 0/1): @dorotheafrenkel With #Rstats (Rmd #knitr sweave etc) you can do this as part of a dynamic document where the text and code are in the same file. But even with #Stata you can have the results output to a particular folder and reference that in your #latex code (“include” “include_graphics” etc

xaringan

Miles Ott ๐Ÿณ๏ธโ€๐ŸŒˆ (@Miles_Ott; 50): Thanks to @BaumerBen and @AmeliaMN for helping me with my first xaringan slides! > Thanks to my colleagues and students at @SmithCollegeSDS for always being willing to chat data ethics!

RSE@Sheffield (@RSE_Sheffield; 25): Tonight at @SheffieldR: 1) @richyyl on webscraping in #rstats (a short walk through #rvest, #selenium and #purrr) and 2) @annakrystalli on presentations in R (using the #Xaringan package)! https://t.co/hxYL9pUeAx

Will Chase (@W_RChase; 20): @mitchhendo Actually I made them in R with the xaringan package

Nicolas Roelandt (@RoelandtN42; 10): @jasongrahn @AmeliaMN @kwbroman I guess, from the Yolo feature of {xaringan} ? ๐Ÿ˜ > https://t.co/xnzcrlR3Ft

Jens von Bergmann (@vb_jens; 10): @stephen_tapp xaringan! Thatโ€™s all I use these days. Renders markdown with R code, as well as latex. Lives as a webpage so easily shareable and accessible. And has a cool presentation mode.