Lecture slides for my ‘Data Science Programming Methods’ course STAT 447 from this Fall 2021 at U of Illinois are now accessible via https://t.co/hHewPJY3pl covering shell (incl sed/awk), markdown, git(hub), sql, lots of #Rstats up to packaging, and Docker. Enjoy! https://t.co/Dv6XSO1ZWj

2022/01/23

#rstats

Dirk Eddelbuettel (@eddelbuettel; 1477/271): Lecture slides for my ‘Data Science Programming Methods’ course STAT 447 from this Fall 2021 at U of Illinois are now accessible via https://t.co/hHewPJY3pl covering shell (incl sed/awk), markdown, git(hub), sql, lots of #Rstats up to packaging, and Docker. Enjoy! https://t.co/Dv6XSO1ZWj β†ͺ

Hadley Wickham (@hadleywickham; 322/17): We’re trying an experiment with acrylic pins over at the RStudio swag store: https://t.co/0e8hRbbvb1. They’re fairly limited availability so if you like them let us know so we can order more! #rstats https://t.co/i8xkMlSFoc β†ͺ

R Function A Day (@rfunctionaday; 292/41): Visualizing data along an Archimedean spiral can efficiently reveal periodic patterns in time series data.

The {spiral_*} function family from {spiralize} πŸ“¦ draws such spiral plots flexibly! πŸŒ€

https://t.co/5vybsvWv2e

#rstats #DataScience https://t.co/c168IWhcXL β†ͺ

Kyle Cuilla (@kc_analytics; 198/26): πŸ“ New to the {reactablefmtr} site:

A step-by-step tutorial on how to build the table shown below!

https://t.co/1DxnHFjF9l #rstats #dataviz https://t.co/T8zoTqS1cU β†ͺ

Abhinav Dubey (@_Appremoo_Here; 150/108): Let me Teach you Gitlab vs GitHub in easy manner!!πŸ€©πŸ˜³πŸ‘ŒπŸ»

#ML #DataScience #BigData #Analytics #AI #IIoT #PyTorch #Python #RStats #TensorFlow #JavaScript #ReactJS #CloudComputing #DataScientist #Programming #Coding #100DaysofCode #Flutter #Jupyter #DL #NLP #SQL #HTML #MLOps https://t.co/rMIuJY5f9D β†ͺ

blogdown

Gabriela de Queiroz (@gdequeiroz; 7/2): @abhi1thakur You can always use #rstats. This post by @apreshill is πŸ’―: https://t.co/akYIwILqkc
Also check the #hugoapero β†ͺ

Big Book of R (250+ free R programming books) (@BigBookofR; 6/4): blogdown Creating Websites with R Markdown by Yihui Xie, Amber Thomas and Alison Presmanes Hill

https://t.co/Oej6NCsMLE
#RStats β†ͺ

Big Book of R (250+ free R programming books) (@BigBookofR; 2/2): blogdown Creating Websites with R Markdown by Yihui Xie, Amber Thomas and Alison Presmanes Hill

https://t.co/Oej6NCbbU6
#RStats β†ͺ

Jennifer K. Houchins (@TooSweetGeek; 2/0): Worked out my favicon issue and added more content to the new website design (e.g., accomplishments, photo gallery, and teaching philosophy). I’m really loving the ease of deploying with
@rstudio #blogdown and #hugo themes.

https://t.co/miECApDkzC β†ͺ

The Bubbles Tickle My Tchaikovsky (@robertk_anger; 2/0): @Evergreen1899 @mfleischhacker1 Du sprichst einem Medium das Recht ab, etwas zu kritisieren.

Gehts noch?

Servus und Fleischhacker sind sehr ausgewogen.
Hast schon einmal Blogdown mit Sprenger geschaut?

Dann red ma weiter… β†ͺ

tidyverse tweets (@tidyversetweets; 1/2): blogdown - R plots get overwritten by latest document #tidyverse #rstats https://t.co/KGueLxywra β†ͺ

Hugo (@heyitsmehugo; 1/2): Hi, #Rstats folk. I’m having a bit of trouble debugging my #blogdown code to have my website back up. I decided to post my question in the #RStudio Community. If you can spare some time, here’s the link: https://t.co/rY6mJtXY8Q — Thank you! β†ͺ

#rstats πŸ€– (@rstatsvideo; 1/1): πŸ“Ί New #rstatsvideo: Creating Personal Website using R blogdown package by Aarathy Babu
β–Ά R-Ladies Abuja (@RLadiesAbuja)
#rstats
πŸ”— https://t.co/ymqy3K1G0b β†ͺ

MickaΓ«l CANOUIL (@MickaelCanouil; 1/0): @heyitsmehugo @rstats_tweets For short, `blogdown::check_site()Λ‹ should tell you everything you need to know/do.

https://t.co/wsmWBXlWsW β†ͺ

MickaΓ«l CANOUIL (@MickaelCanouil; 1/0): @heyitsmehugo @rstats_tweets There is a blogdown::build_site()Λ‹ function (closely related to Λ‹blogdown::serve_site().
The themes folder is 100 % part of your site. Everything inside is used to build your website.
You should try an older version of Hugo. (And if the errors remain, open an issue the GitHub) β†ͺ

Alison Presmanes Hill (@apreshill; 1/0): @dailyzad @mariviere1 @andrewheiss I think you can still use Hugo- you’ll just be knitting individual Rmd/qmd files. There will be no replacement for β€œserving a hugo site” or the high level functions blogdown gives you, but you could still use blogdown as an R package I think (not tested!) β†ͺ

Cameron Patrick (@camjpatrick; 1/0): @AndrewHayen @K_Sheldrick plus either blogdown or distill to create a website or blog from individual Rmd documents. I’ve used blogdown before, distill is newer and apparently easier to use:
https://t.co/WTeyBPS5w7 β†ͺ

Hugo (@heyitsmehugo; 0/2): To folks who use #blogdown to build their websites. If you want 2 leave the template folders to help guide you in publishing your posts but don’t want them to show in your website, what do you? Is there a way to prevent it from being published? #RStats @RStudioEDU @rstats4ds β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): How to “unbreak” my blogdown website? Problem in the themes folder when calling Paginate. #tidyverse #rstats https://t.co/VQ8z0LXNr8 β†ͺ

bookdown

Alessandro Santuz (@alesantuz; 13/6): Thanks @ExPhysStudent, @lakens, @ChelseaParlett, @GuyProchilo and all the contributors for gifting Everyone the #bookdown “Power Analysis with #Superpower”! https://t.co/QDK9egX34H
#rmarkdown #rstats β†ͺ

chrisvarghese (@chrisvarghese98; 10/6): @AlaaEl_Hussuna @germ_red @STAR_Research @MontesinosSanti @DiegoEscarraman @OrlandoRPN @thomaswoodcock @SRAnesthesiaICU @iccvanderhorst @ESCP_studies @vir_dur @efutier @juliomayol @DrJamesGlasbey Meta package for meta analyses in R are my go tos!

Excellent guides available

Meta-analysis: https://t.co/QtrXKz4QrK β†ͺ

Michele M Tobias, PhD (@MicheleTobias; 6/5): Does anyone know if #rstats bookdown works with the flair package? I’m trying everything I can think of but it just seems to ignore the flair code. β†ͺ

SΓ©bastien Rochette (@StatnMap; 3/0): @antoine_fabri @CMastication @rushworth_a @tanyacash21 You can change this behavior. On my side, I changed it by default to get the the same behavior as scripts.
πŸ‘‰ https://t.co/dLA0ItUcQa https://t.co/dB7i2tJ0iH β†ͺ

Lisa DeBruine (@LisaDeBruine; 3/0): I’ll probably keep working on the custom engine and add it to our #psyteachR bookdown template soon. Right now it just highlights inline code and headers, and probably doesn’t work for knitting to PDF. (I can write latex, I just don’t like to anymore.)

https://t.co/rpy19Os55x β†ͺ

Lisa DeBruine (@LisaDeBruine; 2/0): TIL that if you want to have multiple YAML files for bookdown (e.g., to render draft chapters to a different dir), you can’t name one of them _bookdown.yml and the other _bookdown_draft.yml. When you render the draft, the draft yml name changes to _bookdown.yml and overwrites it. β†ͺ

Theresa Smith πŸ’‰πŸ’‰πŸ’‰ (@TheresaRSmith; 2/0): @j_l_godwin @vnminin I provide a full set of typed notes (in pdf and accessible html via bookdown) in advance. In class I write on real paper which is projected to the class via a document camera. A strange low-tech hi-tech hybrid! For the life of me, I can’t write legibly on an iPad. β†ͺ

Dr. Sarah-Elizabeth Byosiere (@sebyosiere; 2/0): @Lee_Niel @JamAhlDall @LjerkaOstojic @emmatecwyn @ASABeducation 3. I was sent this in an e-mail this week and it looks great! Its by Dena Clink (not sure if she is on Twitter), but the guide looks great and may be what you’re looking for (check the Field Labs): https://t.co/wCKncwqS9E β†ͺ

Ed Jegasothy (@edjegasothy; 2/0): @K_Sheldrick @AndrewHayen Rmarkdown/bookdown is the way to go imo.

https://t.co/0PX5CS6V46 β†ͺ

π™³πšŠπšŸπš’πš πšπšŽπš’πš—πšœπšπšŽπš’πš— (@GivingTools; 1/3): Bookdown: Everyone seems to be going with bs4_book style these days, but I don’t really want to waste the horizontal space with outline/headers on both sides.

Is there another advantage of bs_4 over #gitbook that I’m missing?

#rstats #rmarkdown @xieyihui β†ͺ

tidyverse tweets (@tidyversetweets; 1/2): How can I make footnote works in Rmarkdown bookdown with sty #tidyverse #rstats https://t.co/bJyn46iMfE β†ͺ

π™³πšŠπšŸπš’πš πšπšŽπš’πš—πšœπšπšŽπš’πš— (@GivingTools; 1/2): can @GitBookIO the gui documentation app be nicely integrated with #rstats #rmarkdown and @xieyihui bookdown::gitbook: output?

E.g., some content/pages made with Rmd, others with the GUI app? β†ͺ

Roy Williams, MPH (@Rwill235; 1/0): If you ever find yourself needing to create an R script from an R markdown file, you can do so using the purl() function https://t.co/REm05vEsE3 β†ͺ

Michele M Tobias, PhD (@MicheleTobias; 1/0): I wrote some R code that converts <highlight></highlight> tags in an .Rmd file to <span> tags with a background color of your choice in the html after you run bookdown. It’s clunky, but it works for now. Maybe I’ll make a package out of it. https://t.co/zINdH9l4zv https://t.co/Zx7d3Rd3AE β†ͺ

Frederico Maioli (@fredericomaioli; 1/0): @AFredston Statistical rethinking recoded with brms by Solomon Kurz has some examples https://t.co/2rnDlr08M2 β†ͺ

Elizaveta (@Elizave89156212; 1/0): @RamziShib @AltcoinAdvisor_ @CheemsInu oo this awaits you lets outrun the apocalypse to make Elon happy

https://t.co/x8CcTkLCcP β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): Bookdown - Add chapters based on user input parameters #tidyverse #rstats https://t.co/QiqqueephE β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): Changing labels of cross-references on bookdown #tidyverse #rstats https://t.co/6v2JxyyYQb β†ͺ

knitr

Lisa DeBruine (@LisaDeBruine; 13/2): I often need to show Rmarkdown in teaching books, but it’s hard to display verbatim backticks. I made a custom knitr engine to highlight it. You set the knitr engine, include a few custom css styles, and place example markdown in code chunks labelled with md. Details πŸ‘‡ https://t.co/2l6zoTxobu β†ͺ

Dave Braze (@davidbraze; 11/2): Here are my typical knitr defaults for Rmarkdown based reports

#RStats https://t.co/JAsx69sVL0 β†ͺ

Tom Mock (@thomas_mock; 8/0): @LisaDeBruine Very cool!

knitr introduced a verbatim chunk recently, does that help in your use case?

https://t.co/9DU3qmZaDv β†ͺ

Yihui Xie (@xieyihui; 7/0): @thomas_mock @LisaDeBruine To get syntax highlighting with the verbatim engine, you need to set the lang option because knitr doesn’t know the content’s language, e.g., ```{verbatim, lang=‘md’}; then you may also need to define some CSS rules, e.g., .hljs-section {color:#0C07FF;} β†ͺ

Gianluca Baio (@gianlubaio; 5/0): @sdias_stats @tmorris_mrc @Richard_D_Riley I am weird, I know. But Rmd and knitr work really good to typeset maths (and citations etc) in semi-Latex format and then output also to docx with very good results… β†ͺ

Guilherme Jacob (@guijacob91; 4/0): @tomecicuta knitr + kablExtra Γ© o meu segredo β†ͺ

jos (@JosiahParry; 3/0): @wouldeye125 Just comment with #’ and use knitr::spin() β†ͺ

Charlotte πŸ‘©β€πŸ’» (@charliejhadley; 3/0): How we like to think about {rmarkdown}

“R Markdown is awesome! It lets you build PDF, HTML, docx, pptx and more! Even entire blogs!”

… then, every so often there’s a project where you need to manipulate/intercept the whole trifecta; {knitr}, Pandoc and LaTeX πŸ€• β†ͺ

Nithin .M (@nithinnithu_m; 2/2): Has anyone used knitr:knit_expand to generate r chunks for ggplot items? I will want to generate r chunks for storing ggplots.. something like this
For example for each species of penguins

#RStats #rmarkdown #knitr β†ͺ

atusy (@Atsushi776; 2/0): knitrγ€γŸγ³γŸγ³γƒ•γƒ«γ‚Ήγ‚―γƒ©γƒƒγƒγ§ζ›Έγη›΄γ—γŸγγͺる……。 β†ͺ

Michael Flynn (@flynnpolsci; 2/0): So for the longest time I had trouble getting knitr::include_graphics("…") to display pictures from a parent directory when compiling Xaringan slides. Turns out including the error argument knitr::inclue_graphics("…", error = FALSE) is the secret sauce. β†ͺ

Fadel Megahed (@FadelMegahed; 1/0): @CDavieSTEM @krwpn Yes, that’s what it does in r markdown (see https://t.co/Tu5p7iBsJn). I also like viridis and RColorBrewer pkgs for picking appropriate palettes. Thank you for sharing the blog. β†ͺ

Tim Feeney (@Tfeend; 1/0): @gianlubaio @sdias_stats @tmorris_mrc @Richard_D_Riley much prefer Rmd and knitr. BUT working with some people cough physicians cough on papers limits the options. #notallphysicians β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): Knitr intermittently fails to execute readLines on URLs, throws Error in file(con, “r”) : cannot open the connection to <URL> #tidyverse #rstats https://t.co/wjlTAsmvZH β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): Knitr won’t compile PDFs if there are plots #tidyverse #rstats https://t.co/FG9xLiXApo β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): error installing knitr #tidyverse #rstats https://t.co/4Pyd80FhiZ β†ͺ

tidyverse tweets (@tidyversetweets; 0/1): knitr: Add figure notes in .Rmd file #tidyverse #rstats https://t.co/Poy6fXrWRX β†ͺ

pagedown

Alex Albright (@AllbriteAllday; 13/5): Ever print your #rstats xaringan slides to PDFs and notice some of your graphs have mysteriously disappeared?

Solution: reduce the plot image size βœ…
(the issue is that there’s vertical overflow)

https://t.co/DyI1D14i5u β†ͺ

tinytex

Serdar BalcΔ± (@serdarbalci; 2/0): @pijanes install.package(“tinytex”) installs the package to your R library. Then using tinytex::install_tinytex() tinytex package runs and installs a minor version of LaTex. You need that LaTex to generate pdfs. β†ͺ

Simone Secchi (@admsimat; 1/0): @id_func Conosci TinyTeX? Non Γ¨ male, ma io preferisco sempre una installazione completa. β†ͺ

xaringan

BHSci_, R & Graphical Art πŸ¦„πŸ‡¨πŸ‡¦πŸŒˆ (@StarTrek_Lt; 8/0): If i was a R instructor, I would get beginners to get in the habit of using Rmd, so that way they can make xaringan slides and stop the power point slides. It’s cringe to me to see a R talk with power point β†ͺ

Lisa Lendway, she/her (@lisalendway; 4/0): @StarTrek_Lt @meghansharris I also still use the regular Rmd rather than xaringan, just because it’s quicker for me. But I’m still quite new to xaringan. β†ͺ

Alex Albright (@AllbriteAllday; 3/1): @Andrew___Baker @ramattheis @wytham88 looking into it more… seems like there is a much better way:

https://t.co/ZR8wx9NuXK https://t.co/xLSZM4k433 β†ͺ

Will Wheeler (@willwheels; 2/0): @AllbriteAllday @Andrew___Baker @ramattheis @wytham88 I need a serious xaringan tutorial β†ͺ

Alex Albright (@AllbriteAllday; 2/0): tagging: xaringan users in case you’ve ever encountered this issue and I can save you some angst

cc: @ramattheis @wytham88 @Andrew___Baker β†ͺ

Alex Albright (@AllbriteAllday; 2/0): I have encountered this issue a bunch of times when I’ve wanted to share xaringan slides with people who like to annotate PDFs to give comments (or when I don’t want to put slides up live online)

Very pleased to realize the solution… a few years later πŸ˜‰ β†ͺ

Meghan Harris (@meghansharris; 2/0): @StarTrek_Lt Ouch. Just did this myself. To be fair, I have two job and classes and simply didn’t have enough time to make the slides in xaringan πŸ€·πŸ½β€β™€οΈ It happens. β†ͺ

Jonah Gelbach (@gelbach; 2/0): @Andrew___Baker @Apoorva__Lal everyone was dm-chatting about that

“like what’s with his xaringan rendering” β†ͺ

BHSci_, R & Graphical Art πŸ¦„πŸ‡¨πŸ‡¦πŸŒˆ (@StarTrek_Lt; 1/0): @meghansharris when in a rush i’d use Google slides, so the alternative is there.
To each there own, just to me R code / topic have a home with xaringan. Time permitting β†ͺ

Dr Ajay Koli (@ajay_kolii; 1/0): From last several days, I am continuously preparing #xaringan slides. Now, side-effect πŸ™†β€β™‚οΈ is very time U Iook at a beautiful picture, I imagine it with the title of my slides. πŸ˜… https://t.co/0MfQr1zpUN β†ͺ