{
  "title": "👉👉Mapa da votação na cidade de São Paulo no 1° turno👈👈 São exibidas as áreas de ponderação do IBGE (adaptadas), dando um nível mais detalhado que as zonas Lula foi bem na periferia e no centro. Bolsonaro nos entornos do Tatuapé #Eleicoes2022 #RStats https://t.co/Il7XYJiZTj",
  "date": "2022-10-16"
}

# #rstats

> **Gabriel Zanlorenssi** (@gzanlorenssi; 753/120): 👉👉Mapa da votação na cidade de São Paulo no 1° turno👈👈
> >
> São exibidas as áreas de ponderação do IBGE (adaptadas), dando um nível mais detalhado que as zonas
> >
> Lula foi bem na periferia e no centro. Bolsonaro nos entornos do Tatuapé
> >
> #Eleicoes2022 #RStats https://t.co/Il7XYJiZTj  [&#8618;](https://twitter.com/gzanlorenssi/status/1581017250328240128)

<!-- -->


> **Tyler Morgan-Wall** (@tylermorganwall; 736/123): ‼️New version of #rayshader released (v0.29.0)! This version enhances 3D ggplots: now, you can easily add a 2D version of the ggplot under (or above, OR alongside) the 3D plot! Just set `flat_plot_render = TRUE`.👌
> >
> #RStats #dataviz #rayverse https://t.co/XDkRnbigmu  [&#8618;](https://twitter.com/tylermorganwall/status/1581251928893231104)

<!-- -->


> **Matt Dancho (Business Science)** (@mdancho84; 641/140): Which skills are needed to become a data scientist? 
> >
> Been getting a ton of questions on which #datascience skills, so I wrote an in-depth article on it. ❤️
> >
> Article: https://t.co/jM5Qt2urwv 
> >
> #rstats https://t.co/9HI5t77aIX  [&#8618;](https://twitter.com/mdancho84/status/1581262872524398592)

<!-- -->


> **R Markdown** (@rmarkdown; 604/178): The 10 Best Data Visualizations of 2022 by Terence Shin in @TDataScience https://t.co/LWFjFTOLS3 #rstats #dataviz #ggplot2  [&#8618;](https://twitter.com/rmarkdown/status/1581000128248176640)

<!-- -->


> **Solomon Kurz** (@SolomonKurz; 285/23): Here is a VERY preliminary syllabus for a 5-day workshop on Intro to Bayesian Statistics, with #brms. This would be aimed at grad students (and above) who are familiar with #RStats and the GLM, and may have some background with the full GLMM. 
> >
> Comments welcome. https://t.co/BQpUNcFMYY  [&#8618;](https://twitter.com/SolomonKurz/status/1581039163708944387)

<!-- -->


# blogdown

> **Dr. Alli N. Cramer** (@AlliNCramer; 13/1): @AnnabellaHelman I'll admit it ... I used R. 
> >
> I built mine with the blogdown package and use a modified hugo-academic theme. I host it on Netlify. https://t.co/Z088Vr4wQb
> >
> This was one of the main resources I used: https://t.co/WUeK8s6mTv  [&#8618;](https://twitter.com/AlliNCramer/status/1580620731377127424)

<!-- -->


> **Meghan Hall** (@MeghanMHall; 3/0): @SamanthaCsik @quarto_pub Wow, I love this! It looks so helpful, can’t wait to dive in more. I had a lot of fun customizing my first Quarto site for a workshop https://t.co/6vRkKDdcNW but haven’t yet updated my main website from Hugo Apero/blogdown.  [&#8618;](https://twitter.com/MeghanMHall/status/1580210884550758400)

<!-- -->


> **Jonathan Carroll** (@carroll_jono; 2/0): @rushworth_a What about @microdotblog https://t.co/71dQ00Px9t if you don't want to configure much, and want to just post stuff in a feed?
> >
> I went with that for https://t.co/U5dcFsXdgP for when I don't want to write a full blogdown post, e.g. https://t.co/dSCf4y2cDs  [&#8618;](https://twitter.com/carroll_jono/status/1581558799311118337)

<!-- -->


> **ysaito** (@ysaito8015; 2/0): blogdown は内部で Hugo を利用している。GitHub Actions を使って、Netlify へのデプロイ例 / https://t.co/CxUpSY6SaO  [&#8618;](https://twitter.com/ysaito8015/status/1580693041962450945)

<!-- -->


> **Mattan S. Ben-Shachar** (@mattansb; 1/2): Do we have a guide for converting #rstats hugo blogdown to @quarto_pub blog yet?  [&#8618;](https://twitter.com/mattansb/status/1580896152308056066)

<!-- -->


> **Bradley M Richardson** (@BradMRichardson; 1/0): @AnnabellaHelman This is a great way to spend a lab meeting. I build my personal site through R, and house everything on Github. Then I use Netlify to push the site out. The #blogdown package in R is great for this.
> >
> My website, just as an example:
> https://t.co/hLj0Sheigl  [&#8618;](https://twitter.com/BradMRichardson/status/1580633883967512576)

<!-- -->


# bookdown

> **Dominik Liebl** (@domliebl; 13/6): A book that collects free #rstats books (~300): 
> Big Book of R https://t.co/OHhzbdUKvU #rmarkdown #bookdown  [&#8618;](https://twitter.com/domliebl/status/1581414576322596864)

<!-- -->


> **Bea** (@Chucheria; 10/1): @koldLight https://t.co/VS9pBSaDe2 es mi fav desde hace mucho tiempo y aún no he visto una plantilla más bonita  [&#8618;](https://twitter.com/Chucheria/status/1579783203078168576)

<!-- -->


> **Ming "Tommy" Tang** (@tangming2005; 9/3): If you knit an Rmd document containing HTML widgets to a non-HTML format such as PDF or Word, you may get an error message.
> >
> Use below to fix it.
> install.packages("webshot")
> webshot::install_phantomjs()
> >
> https://t.co/2RKjeNqYBS #rstats #markdown  [&#8618;](https://twitter.com/tangming2005/status/1580922113619550209)

<!-- -->


> **tipsder** (@tipsder; 7/2): Análisis de datos con #R
> Interesante libro, con mucho de lo que hay que saber, para implementar un análisis de datos con el apoyo de R.
> Gracias al autor por este aporte.
> https://t.co/5pxQEVfvIv
> #DataScience 
> #RStats 
> #RStatsES
> #dataviz 
> #DataVisualization 
> #dataviz https://t.co/RJncEE4b8S  [&#8618;](https://twitter.com/tipsder/status/1580294352227553281)

<!-- -->


> **Jennifer Fouquier** (@JTFouquier; 6/3): I have been really missing out. Just learned how easy it is to make tabbed sections in Rmarkdown. Sooooo much easier to stay organized this way. #bioinformatics https://t.co/sIs9oASaSd
> ## Quarterly Results {.tabset}
> ### By Product
> (tab content)
> ### By Region
> (tab content) https://t.co/CrcmydPz8Y  [&#8618;](https://twitter.com/JTFouquier/status/1580300388107837441)

<!-- -->


> **Guruthos42** (@Guruthos42; 6/2): @ijlyttle @rstatstweet You can even reuse entire code chunks, which allows for some rather elaborate setups.
> https://t.co/YUaebmsDBl  [&#8618;](https://twitter.com/Guruthos42/status/1581079993043410945)

<!-- -->


> **tipsder** (@tipsder; 5/3): ¡Ciencia de Datos para Ciencias Naturales!
> Gran libro, en español, para el aprendizaje de la ciencia de los datos en ciencias naturales con el apoyo de #R, principalmente.
> Gracias al autor por este excelente aporte.
> https://t.co/rICroL3tLB
> #RStats 
> #dataScientist 
> #datavis 
> #data https://t.co/sYpUwOdVY6  [&#8618;](https://twitter.com/tipsder/status/1580631842528509952)

<!-- -->


> **Cándido Martínez** (@candidomtz; 5/2): Acabo de terminar y poner en práctica este #opensourcebook. Recomiendo muchísimo para todos aquellos interesados en profundizar Ciencia de Datos.
> Introduction to Data Science https://t.co/uBNO5JciU7 #rmarkdown #bookdown  [&#8618;](https://twitter.com/candidomtz/status/1580589386625794050)

<!-- -->


> **David H. Montgomery** (@dhmontgomery; 3/5): A few years ago, @noamross created the "redoc" package for #rstats, which allowed you to knit an Rmd to Word, send it to someone for edits, and then port those Tracked Changes back into the Rmd. But development has stopped. Has anyone picked it up again? https://t.co/savHGCZ2fw  [&#8618;](https://twitter.com/dhmontgomery/status/1580234702505377800)

<!-- -->


> **🦆** (@enduckeneity; 3/0): and those textbooks should be made in bookdown/quarto and in searchable html format. 
> >
> its current year i shouldn’t have to be zooming in to read something on my phone or letting the tyranny of 8.5x11 aspect ratio determine my window sizes  [&#8618;](https://twitter.com/enduckeneity/status/1579294196204441601)

<!-- -->


> **ジュン** (@L3tkLfjaAXly92D; 2/0): 9. データの構造 | 私たちのR: ベストプラクティスの探究 https://t.co/TBGrWJ7SW2 #rmarkdown #bookdown  [&#8618;](https://twitter.com/L3tkLfjaAXly92D/status/1580997950339448832)

<!-- -->


> **Mickaël CANOUIL** (@MickaelCanouil; 2/0): @realHollanders @DanOvand0 @quarto_pub It depends if by "RMarkdown" you meant {rmarkdown}+{bookdown}.
> If so yes, all those things were possible using the two packages (the latter has the former as a dependency to be fair).
> Most of what #QuartoPub is currently able comes from RMarkdown.  [&#8618;](https://twitter.com/MickaelCanouil/status/1580543710328107009)

<!-- -->


> **Meghan Harris** (@meghansharris; 2/0): @Jmar116 @dgkeyes @mrworthington @ivelasq3 LOL you don't want to follow my method of throwing things at a wall until it works 😅 When it comes to CSS stuff I will use https://t.co/dEsEX26xEr and google/ stack overflow hacks. I haven't used Quarto for this yet, but with RMarkdown I used https://t.co/OoSkScyXzq religiously.  [&#8618;](https://twitter.com/meghansharris/status/1579847771133480960)

<!-- -->


> **Ladislas Nalborczyk** (@lnalborczyk; 1/2): I have a quarto website and a .html file of a gitbook made with bookdown (located in a subfolder of the quarto website). How can I embed this gitbook within the quarto website? 🤔🤔 #quarto #RStats  [&#8618;](https://twitter.com/lnalborczyk/status/1580889407363903488)

<!-- -->


> **James Tripp (he/him)** (@jamestripp_; 1/2): Very nice! Skimming through, this looks like a good overview of using R in a few different areas. Parts about non-linear models, using bayesglm and shiny dashboards were fun. I'd combine this with https://t.co/nAHiY8zU8I , https://t.co/fZHeZ45zaR and https://t.co/4WbGvMDLFT https://t.co/DnsOLtJucv  [&#8618;](https://twitter.com/jamestripp_/status/1580825234793725952)

<!-- -->


> **tidyverse tweets** (@tidyversetweets; 1/1): Can't knit rmarkdown, error "File `bookdown.sty' not found" and titling package not available for my version of R #tidyverse #rstats https://t.co/ciBUfvfxjo  [&#8618;](https://twitter.com/tidyversetweets/status/1580059948150509569)

<!-- -->


> **Marc-Aurèle Rivière 🧠💻😷** (@mariviere1; 1/0): @IsabellaGhement Not used very often, but very useful !
> >
> https://t.co/dHUamp7qvJ  [&#8618;](https://twitter.com/mariviere1/status/1581315969586466816)

<!-- -->


> **Arthur Bazolli** (@baarthur0; 1/0): @Caio_Ortega @curso_r Econometria com R
> https://t.co/HPhtShccRD
> >
> R para ciência de dados - em português, muito bom, do @curso_r
> https://t.co/rkzbhEtWcz
> >
> R for Social Sciences
> https://t.co/5h6JRVkr3C  [&#8618;](https://twitter.com/baarthur0/status/1580947050270556160)

<!-- -->


> **Arthur Bazolli** (@baarthur0; 1/0): @Caio_Ortega @curso_r Manual do RMarkdown - como usar, formatos de output etc.
> https://t.co/kJ0IS2VCno
> >
> Referência do Rmarkdown - bom pra consulta rápida.
> https://t.co/X1Kp35zlA5
> >
> Planejar/estruturar um projeto no RStudio - organizar é sempre bom para o você de amanhã!
> https://t.co/31KKsZQCQO  [&#8618;](https://twitter.com/baarthur0/status/1580946771576229888)

<!-- -->


> **Farzana Kousar** (@Farzana67338185; 1/0): Meta Analysis: What, Why &amp; How?
> References:
> https://t.co/n82lq7JSpG
> https://t.co/kOC964Eobo
> 🧵👇  [&#8618;](https://twitter.com/Farzana67338185/status/1580841388668698624)

<!-- -->


> **Stephen Eglen** (@StephenEglen; 1/0): @brembs @TomasFiers I've been using xaringan https://t.co/mLNkOxmtyC
> >
> but the new kid in the R/python/Julia town is @quarto_pub  [&#8618;](https://twitter.com/StephenEglen/status/1580840043023077378)

<!-- -->


> **Roxmy** (@Roxmy12; 1/0): Algunos conceptos estadísticos narrados de manera divertida.
> https://t.co/Tzt9fvWpFv  [&#8618;](https://twitter.com/Roxmy12/status/1580451560089300992)

<!-- -->


> **tj nightmahr 🧟‍♂️** (@tjmahr; 1/0): @apreshill each entry has a .Rmd file. those are knitr::knit() as needed if they or their dependencies change (using the targets package). those .md files are then collated into a single bookdown::markdown_document2() file with a cleanrmd html theme.  [&#8618;](https://twitter.com/tjmahr/status/1579935504984059904)

<!-- -->


> **eve** (@danceocea; 1/0): hum so I found this notes from the prev prof by my BT1101 mod hen slaying but he Mei you finish the front part 
> >
> Statistics and Analytics for the Social and Computing Sciences https://t.co/apR6mEKpXg #rmarkdown #bookdown  [&#8618;](https://twitter.com/danceocea/status/1579708783588446208)

<!-- -->


> **👻🎃 Andrew Friiights 🧛👻** (@andrewheiss; 1/0): @Domenic_DF @IsabellaGhement It's possible to compile the Stan chunks directly in the document (https://t.co/7k1Z81ZRn8), but there are issues doing that with cmdstanr and Quarto, so I put the actual Stan code in an external file and just show it in the document here 🤷‍♂️  [&#8618;](https://twitter.com/andrewheiss/status/1579486939777945601)

<!-- -->


> **tidyverse tweets** (@tidyversetweets; 0/1): How to control width of a long LaTeX equation in bookdown #tidyverse #rstats https://t.co/98bJUuVpHu  [&#8618;](https://twitter.com/tidyversetweets/status/1581548656423231488)

<!-- -->


# knitr

> **Ian Lyttle** (@ijlyttle; 41/7): 🤯 discovery (for me), using knitr:
> >
> \`\`\`{r}
> a &lt;- "foo"
> \`\`\`
> >
> \`\`\`r
> b &lt;- "`r a`"
> \`\`\`
> >
> #rstats  [&#8618;](https://twitter.com/ijlyttle/status/1581074076461764608)

<!-- -->


> **R Markdown** (@rmarkdown; 28/9): Learn to use R in LaTeX to create dynamic documents with Overleaf and Knitr. https://t.co/gBIkjjE7kn via @citedrive #rstats #texlatex #overleaf #rmarkdown #quartopub #knitr #citedrive  [&#8618;](https://twitter.com/rmarkdown/status/1581003013065691137)

<!-- -->


> **boB Rudis 🇺🇦** (@hrbrmstr; 11/2): @crcgrubbsd @yabellini Using `fig.alt` with {knitr} (which works with Quarto &amp; R Markdown) does this: https://t.co/JyvPe6vBQL  [&#8618;](https://twitter.com/hrbrmstr/status/1580262320067862530)

<!-- -->


> **F Rodriguez-Sanchez** (@frod_san; 6/3): @AFredston A few tools to make #rstats citations easier:
> >
> grateful https://t.co/HIaKgCgnkj
> >
> report https://t.co/3bIGhZPqMa
> >
> knitr::write_bib or visual Rmarkdown https://t.co/A1A6QTRiGJ  [&#8618;](https://twitter.com/frod_san/status/1580533632787447809)

<!-- -->


> **Julie Padilla, PE** (@jp_hydro; 6/0): Workin' on a #vignette for #USGS #dataRetrieval and I am loving these additional #alttext options in #knitr
> >
> Thanks again @rstudio squad https://t.co/tSX1P8h7KW  [&#8618;](https://twitter.com/jp_hydro/status/1580666414632878081)

<!-- -->


> **Marian Sauter** (@mariansauter; 5/0): @crcgrubbsd In R MarkDown it's pretty easy with knitr https://t.co/M9iIv0SBHg LaTeX/Overleaf provides the \description command for figures. https://t.co/nvbbznl53O  [&#8618;](https://twitter.com/mariansauter/status/1580204289858732032)

<!-- -->


> **Trillian Astra** (@das_ipi; 2/0): @VivBeanX @JulesVerne72594 @ein_oxymoron @Timbosteron Alles was sie sagt 👆
> >
> Next level:
> R plots als tiks oder knitr einbinden und von TeX kompilieren lassen. Dieselbe Schriftart und -größe, keine binären Dateien, alles handlich und kompakt und einfach hübsch.  [&#8618;](https://twitter.com/das_ipi/status/1581262943500800001)

<!-- -->


> **Jose Barrera** (@overdispersion; 2/0): @AnaBayes @tvaldessolis Puedes cambiar el color de los ítems o, incluso mejor, controlar qué ítems/secciones aparecen en el PDF haciendo interaccionar LaTeX con R vía knitr.  [&#8618;](https://twitter.com/overdispersion/status/1580839597713432576)

<!-- -->


> **Marc-Aurèle Rivière 🧠💻😷** (@mariviere1; 2/0): @andrewheiss @Domenic_DF @IsabellaGhement In case it helps: I use @bearloga custom knitr engine (instead of cmdstanr::register_knitr_engine()) for Stan code compiled through {cmdstanr} inside Quarto chunks, and I haven't met any issues (yet).
> >
> https://t.co/yEmMQOAcvE  [&#8618;](https://twitter.com/mariviere1/status/1579501139653185537)

<!-- -->


> **Matthijs Hollanders** (@realHollanders; 1/0): @betanalpha I found this online, no idea how it works but it does:
> >
> def.chunk.hook &lt;- knitr::knit_hooks$get("chunk")
> knitr::knit_hooks$set(chunk = function(x, options) {
>   x &lt;- def.chunk.hook(x, options)
>   paste0("\n \\small \n\n", x, "\n\n \\normalsize")
> })  [&#8618;](https://twitter.com/realHollanders/status/1581387278228029441)

<!-- -->


> **Marc-Aurèle Rivière 🧠💻😷** (@mariviere1; 1/0): @IsabellaGhement knitr will automatically do that without needing the !expr (it's a YAML specific syntax AFAIK).
> >
> {r fig.height = my_height}
> >
> will automatically search for my_height in the global env. You can even put functions / conditions in there without needing a specific syntax  [&#8618;](https://twitter.com/mariviere1/status/1581314676427657216)

<!-- -->


> **Marc-Aurèle Rivière 🧠💻😷** (@mariviere1; 1/0): @IsabellaGhement If you don't include the envir parameter in knit_child, it will see the global environment by default (at least if you call knit_child from the global env, i.e. not within a function).
> >
> knitr::knit_child(template, quiet = T) |&gt; unlist() |&gt; cat(sep = '\n')  [&#8618;](https://twitter.com/mariviere1/status/1581311108497174529)

<!-- -->


> **Marc-Aurèle Rivière 🧠💻😷** (@mariviere1; 1/0): @IsabellaGhement Would basically look the same. {knitr} can parse both R Markdown ({r fig.height = height, ...}) and Quarto chunk headers (#| fig.height = !expr height)  [&#8618;](https://twitter.com/mariviere1/status/1581306731766112256)

<!-- -->


> **Marc-Aurèle Rivière 🧠💻😷** (@mariviere1; 1/0): @IsabellaGhement Yes, you can give knit_child a string of the template instead:
> >
> (inside the map function)
> >
> txt &lt;- "\`\`\`{r}\n#| output: asis\n#| echo: false\n\n my_plot(data)\n\`\`\`\n\n"
>       knitr::knit_child(text = txt, envir = new.env(parent = environment()), quiet = TRUE)  [&#8618;](https://twitter.com/mariviere1/status/1581306015437373442)

<!-- -->


> **Matthijs Hollanders** (@realHollanders; 1/0): @betanalpha Subscribed, because I used knitr hooks to change code chunk font size  [&#8618;](https://twitter.com/realHollanders/status/1581017119986110466)

<!-- -->


> **María Paula Caldas** (@mapaulacaldas; 1/0): @apreshill smells:
> - not enough editing/refactoring
> - code overflowing in boxes
> - printing unnecessary warnings/messages
> >
> qualities:
> - DRY code-chunks (e.g. knitr ref.label) and parameters
> - line breaks
> - easy navigation (for reader &amp; developer)  [&#8618;](https://twitter.com/mapaulacaldas/status/1579907083641946112)

<!-- -->


# pagedown

> **Mickaël CANOUIL** (@MickaelCanouil; 2/0): @dickoah @MikeMahoney218 I do not have link (right now) but it's "simply" adding scripts and css using "include-*" #QuartoPub YAML options.
> You can build a template extension using the {pagedown} template as a starting point https://t.co/mpoSwx4bdZ
> >
> Or indeed wait for it.  [&#8618;](https://twitter.com/MickaelCanouil/status/1580541550462803968)

<!-- -->


# xaringan

> **Rosana Ferrero🕊☮️🏳** (@RosanaFerrero; 41/12): @koldLight @gilbellosta Hola Ana, Qué tema! En mi caso suelo preparar mis plantillas Rmd con logo y Latex/CSS básicos. Pero tienes templates en la galería https://t.co/Ro2zGhKLq3 tb https://t.co/OGZplYAvbE y paquetes tufte, prettydoc, memor, rtemps, xaringan, etc.  [&#8618;](https://twitter.com/RosanaFerrero/status/1579950981298946048)

<!-- -->


> **Gabo Gaona** (@gavg712; 4/1): @kieganer @rstats4ds @StatStas Rmd (xaringan) or Qmd reduced the time for me to write a presentation, especially when the template was ready. The first time took a longer time than the subsequent ones.
> #rstats #rmakdown #quartopub  [&#8618;](https://twitter.com/gavg712/status/1579990973501018112)

<!-- -->


> **jebyrnes (he/him)** (@jebyrnes; 3/0): Note - I'm also working on setting up independent repos of websites from the previous versions of the class if you want to follow along my journey. It's wild. Even just the part that goes from beamer/sweave slides to xaringan/rmarkdown slides.  [&#8618;](https://twitter.com/jebyrnes/status/1580565756785623040)

<!-- -->


> **Fergus Chadwick** (@FergusJChadwick; 1/0): @enduckeneity @betanalpha Similar vibes, I used xaringan pre-quarto and loved it. revealjs does lovely animation. But yeah, not so good for collaboration  [&#8618;](https://twitter.com/FergusJChadwick/status/1580664021815918592)

<!-- -->


> **🦆** (@enduckeneity; 1/0): @FergusJChadwick @betanalpha one used xaringan quite a bit it’s pretty similar to that right? although sadly most of my slide show needs involve collaboration and so it’s always g docs. that’s one thing quarto is bad at tbh.  [&#8618;](https://twitter.com/enduckeneity/status/1580663670752698368)

<!-- -->


> **tidyverse tweets** (@tidyversetweets; 0/1): RStudio xaringan slide viewing ridiculously slow in Monterey #tidyverse #rstats https://t.co/q9o4t74SsV  [&#8618;](https://twitter.com/tidyversetweets/status/1579572866697134080)

<!-- -->


