2026-01-11 11:00:00
Function-oriented Make-like declarative workflows for R #rstats
{constructive} prints code that can be used to recreate R objects. Like dput, but better... #rstats
R doesnt need to be a hard and scientific tool 📈. You can use it to make art 🎨: #rstats
{dtrack} makes documentation of data wrangling part of the analysis and creates pretty flow charts: #rstats
Add highlighting to your quarto presentation using the RoughNotation library: #rstats
Are you interested in how dependency-heavy your (or another) package is and why? #rstats
Hmm — an htmlwidget serializer. I'd like to see that out in the wild. #RStats
#Rstats problems: Did you ever think that the dots for dotted lines are a bit too far apart per default? TIL that it's super easy to change this.
In #ggplot2, simply try something like:
scale_linetype_manual(
values = c(a = "dotted", b = "11")
)
The '11' means: 1 point for a dot, 1 point for a gap. Find out more here: https://stackoverflow.com/questions/25788945/how-to-define-more-line-types-for-graphs-in-r-custom-linetype
Using fonts in R graphics can be tricky at times. {showtext} aims to make it easier: #rstats
Lets be honest, we spend too much time cleaning data. {janitor} can help with that: #rstats #datasciece
Beside the {report} package (yesterdays note) there are more tools in the easystats collection. #rstats
A template for data analysis projects structured as R packages (or not) https://github.com/Pakillo/template by @…
On my way to the U Cologne & the SFB „Prominence in Language“ - thanks to @… 😊 See you soon! #rstats #udpipe #linguistics
Need some data to test a plot idea or algorithm? On #rstats #synthetic…
Automatically describe data and models as text using the {report} package. #rstats
Just as I've started to get a pretty comfortable with all the coordinate representations, projections, etc., I see this. If I would've came across an older dataset with this before now, I'm not sure what I would've done. Tried an internet search out of curiosity, but didn't come up with much. sp::char2dms converts it to numerical coordinates, but I didn't see any other functions/pkgs out there that does that conversion.
What They Forgot to Teach You About R: #rstats
There are frameworks like {golem} and {rhino} to make shiny development more robust, but I like the concept of {shinytest2} in providing a testing framework for pure shiny. https://rstudio.github.io/shinytest2/index.html
Didn't know that {skimr::skim} worked an arrow object. It's pretty cool, but it hits your RAM pretty hard. That's only a 70MB directory of parquet files, and my RAM usage went up by ~1.3GB. #RStats Code: https://ray.so/fCoXwso
Polars is a lightning fast DataFrame library/in-memory query engine with parallel execution and cache efficiency. And now you can use is with the tidyverse syntax: #rstats
Add some swag to your ggplots, with fontawesome symbols and colors: #rstats
{piggyback} makes it easier to attach large files (e.g. input data) to code in github repos: #rstats
If you use Quarto to make presentations for a professional setting, it is important to choose the right theme, e.g. #rstats
Primer to get you started with Optimization and Mathematical Programming in R #rstats
TidyX: screencasts explaining different aspects of the R language and the coding process. #rstats
{purrr} has some lesser known functions that make handling of failing function calls easier: safely, quietly, possibly: #rstats
Interactive resizing of picture and table content in Rmd and Quarto: #rstats
The {conflicted} package makes sure that namespace conflicts are solved explicitly and prevents unpleasent surprises: #rstats
{spiralize} can be used to highlight cyclic data, e.g. multi year time series. #rstats
I have a habbit of making (too) many (small) packages for functionality that might be reused in different context. {box} might be an alternative by making scripts into modlues that can be loaded: #RStats <…
Are you making slides with Quarto or R Markdown and need a timer e.g. for breaks or group work? There is the {countdown} package for you: #rstats
Linear programs help to find optimal solutions based on a set of constrains. I used {ompr} before, but the new package {tidyLP} looks promising and integrates with the tidyverse. #rstats #linearprograms #optimization
When #teaching #Rstats / #statistics courses, I (and several colleagues of mine) made the experience that it is indeed pretty hard for a lot of students to cope with the file system on their computer. They have questions like: How do I know the "path" of a file? How do I control in which directory something is saved? WHY DO I NEED THIS?!?
I don't want to make fun of these students because I know that this could be because operating systems are increasingly obscuring file/directory systems from their users.
But if I want to teach students to use a scripting/ #programming language independently, that's a real problem!
So my questions to you are: Do you have the same impression when teaching? And if so: How do you deal with this from a teaching perspective? To be honest, I don't want to use precious course time to teach the absolute basics of computers' file systems in the first session(s).
Getting started with Shiny to make interactive web-apps with R: #rstats
Keynote from rstudio::conf 2022: The past and future of shiny. #rstats
The fastverse is a suite of complementary high-performance packages for statistical computing and data manipulation in R. #rstats
Customize what happens when you start R: #rstats #environment
{slider} helps with aggregation over (sliding) windows, both index and time period based: #rstats
Do you need inspiration how to present a dataset in a clear figure and what package to use? Check out #rstats
A curated list of awesome tools to assist 📦 development in R programming language. #rstats #📦
The functions in the {withr} package allow to change your environment temporarily. E.g. create a temp file for a {testthat} test and clean it up afterwards. #rstats
Follow along when @… walks you through how she tackles a new dataset: https://www.youtube.com/c/JuliaSilge
The {purrr} package is a powerfull way to replace loops. The {furrr} package takes this approach one step further by parallel execution: #rstats
Make sure your code follows a consitent style using the {lintr} package. #rstats
{annotater}: Annotate package load calls, so we can have an idea of the overall purpose of the libraries we’re loading: #rstats
GitHub Actions for the R language: Makes automatic testing of your R package much easier and making sure your package works on different OS and R versions is a matter of just a few lines of yaml: #rstats
{testthat} is great for automatic testing. Here are some tricks for the heavy user: #rstats
Do you (sometimes) use print() or message() for debugging your code? Next time you can use {icecream} instead: #rstats
I am more fluent in LaTeX than in plotmath expression. If you are the same, latex2exp will make your life easier. https://cran.r-project.org/web/packages/latex2exp/vignettes/using-latex2exp.html
It has happened to the best of us: You forgot the name of a function or the package that function was in but you are sure its there somewhere and does exactly what you need! Introduce {forgot}, it helps you find that function: https://github.com/parmsam/forgot