2025-09-11 10:00:01
Function-oriented Make-like declarative workflows for R #rstats
Hey #rstats folks! I'm curious to know if you use {renv} when developing packages? Or are there any downsides to it?
{ivs} makes it easier to work with intervals: #rstats
Hey #rstats folks! I'm curious to know if you use {renv} when developing packages? Or are there any downsides to it?
Add some swag to your ggplots, with fontawesome symbols and colors: #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
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…
Hmm — an htmlwidget serializer. I'd like to see that out in the wild. #RStats
Tidy Modeling with R: #rstats #machinelearning
#Accessibility modelers using #r5r #rstats, check this GUI for playing around with R5 network. If many people find it useful, I would get signal if I should invest any more free time into it.
Extract tables from pdfs with {tabulapdf} #rstats #datasciece
New #rstats https://github.com/e-kotov/gridmaker Creates Eurostat GISCO compatible and INSPIRE-compliant grids with IDs that look like ‘CRS3035RES1000mN3497000E4448000’ or ‘1kmN3497E4447’. Input can be sf, or …
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 @…
{purrr} has some lesser known functions that make handling of failing function calls easier: safely, quietly, possibly: #rstats
Automatically describe data and models as text using the {report} package. #rstats
Interactive resizing of picture and table content in Rmd and Quarto: #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
#rstats #spanishoddata will be presented next week at the MNO-MINDS ESSnet Project Final Conference https://cros.ec.eur…
The {conflicted} package makes sure that namespace conflicts are solved explicitly and prevents unpleasent surprises: #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
{nplyr} has helper functions to work on nested dataframes: #rstats #datascience
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
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
Im using case_when() quite a lot, case_match() is new to me: #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
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
Primer to get you started with Optimization and Mathematical Programming in R #rstats
Not sure any longer which libraries your script actually needs? #rstats
{spiralize} can be used to highlight cyclic data, e.g. multi year time series. #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
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
The inner working of parquette/arrow data in R: #rstats
{dtrack} makes documentation of data wrangling part of the analysis and creates pretty flow charts: #rstats
Follow along when @… walks you through how she tackles a new dataset: https://www.youtube.com/c/JuliaSilge
R doesnt need to be a hard and scientific tool 📈. You can use it to make art 🎨: #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
{annotater}: Annotate package load calls, so we can have an idea of the overall purpose of the libraries we’re loading: #rstats
Lets be honest, we spend too much time cleaning data. {janitor} can help with that: #rstats #datasciece
Using fonts in R graphics can be tricky at times. {showtext} aims to make it easier: #rstats
Need some data to test a plot idea or algorithm? On #rstats #synthetic…
{testthat} is great for automatic testing. Here are some tricks for the heavy user: #rstats
Cute comics of R functions by @…: https://allisonhorst.com/r-packages-functions
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
Friends Don't Let Friends Make Bad Graphs! Do you agree with the examples of bad graphs and the alternatives Chenxin Li (@chenxinli2.bsky.social) lists at #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
Easier debugging of piped analyses in R: https://github.com/MilesMcBain/breakerofchains by @…
If you set limits for a scale (e.g. x-axis) in ggplot, how would you like data outside of that range be handled? There is the oob parameter for that and a set of functions to use with it: https://scales.r-lib.org/reference/oob.html
Sometimes you get data in less than optimal format, e.g. as a png of a figure 😭... In that case https://cran.r-project.org/web/packages/metaDigitise/vignettes/metaDigitise.html might be the rescue.