2025-11-18 11:00:01
The {purrr} package is a powerfull way to replace loops. The {furrr} package takes this approach one step further by parallel execution: #rstats
The {purrr} package is a powerfull way to replace loops. The {furrr} package takes this approach one step further by parallel execution: #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
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
{annotater}: Annotate package load calls, so we can have an idea of the overall purpose of the libraries we’re loading: #rstats
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
Make sure your code follows a consitent style using the {lintr} package. #rstats
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).
#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
{testthat} is great for automatic testing. Here are some tricks for the heavy user: #rstats
Hmm — an htmlwidget serializer. I'd like to see that out in the wild. #RStats
{ivs} makes it easier to work with intervals: #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
What They Forgot to Teach You About R: #rstats
On my way to the U Cologne & the SFB „Prominence in Language“ - thanks to @… 😊 See you soon! #rstats #udpipe #linguistics
Spent my day ranting on Mastodon and helping teach applied statistics with #rstats to first year students.
I consider that a day well spent.
#PhDLife #PostdocLife #AcademicChatter
Function-oriented Make-like declarative workflows for R #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
Sometimes (often) one ends up needing to run older versions of R using older versions of packages. Evercran might be just the tool to help with that: #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.
Tidy Modeling with R: #rstats #machinelearning
Using fonts in R graphics can be tricky at times. {showtext} aims to make it easier: #rstats
Extract tables from pdfs with {tabulapdf} #rstats #datasciece
Beside the {report} package (yesterdays note) there are more tools in the easystats collection. #rstats
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
{nplyr} has helper functions to work on nested dataframes: #rstats #datascience
Im using case_when() quite a lot, case_match() is new to me: #rstats
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
There are many situations were you need access to different R versions: rig is a way to manage them #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
A template for data analysis projects structured as R packages (or not) https://github.com/Pakillo/template by @…
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
Not sure any longer which libraries your script actually needs? #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
{spiralize} can be used to highlight cyclic data, e.g. multi year time series. #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
A pictures says more than 1000 words. How much more can an audio representation of your data tell you? #rstats
The {esquisse} package makes it easy to plot your data in different ways with a drag and drop interface: #rstats
Getting started with Shiny to make interactive web-apps with R: #rstats
Keynote from rstudio::conf 2022: The past and future of shiny. #rstats
{slider} helps with aggregation over (sliding) windows, both index and time period based: #rstats
Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: #RStats
Use multi level models with {parsnip}: http://multilevelmod.tidymodels.org/ #rstats #ML
A curated list of awesome tools to assist 📦 development in R programming language. #rstats #📦
The inner working of parquette/arrow data in R: #rstats
Follow along when @… walks you through how she tackles a new dataset: https://www.youtube.com/c/JuliaSilge
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
Cute comics of R functions by @…: https://allisonhorst.com/r-packages-functions
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