2026-03-11 11:00:01
Make sure your code follows a consitent style using the {lintr} package. #rstats
Make sure your code follows a consitent style using the {lintr} package. #rstats
I could not not share my favorite image of the week... Month... Maybe year, with the #rstats folks over here!
RE: #rstats
{dtrack} makes documentation of data wrangling part of the analysis and creates pretty flow charts: #rstats
#rstats osrm.backend 0.2 is out.
I fixed a bug that might have caused lockup if you tried to calculate too large origin-destination matrices. Should work just fine now! (though there is a limit of course, as it works over REST API, but parallel requests are your friend).
osrm.backend::osrm_start("data_folder")
- router is installed automagically on all OS
- graph p…
RE: #rstats
RE: https://rstats.me/@mdsumner/116148066329334078
Surely just some Play-doh and an old copy of Hustler would have been enough to keep the mad fuck distracted?
{annotater}: Annotate package load calls, so we can have an idea of the overall purpose of the libraries we’re loading: #rstats
RE: #rstats
Try this in #Rstats :
x <- -42
x^2.3
==> NaN ("not a number")
Now try this:
-42^2.3
==> -5413.441
🤯
(adapted from the wonderful 'R Inferno' by Patrick Burns #precedence
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
{constructive} prints code that can be used to recreate R objects. Like dput, but better... #rstats
Function-oriented Make-like declarative workflows for R #rstats
{testthat} is great for automatic testing. Here are some tricks for the heavy user: #rstats
What They Forgot to Teach You About R: #rstats
{ivs} makes it easier to work with intervals: #rstats
R doesnt need to be a hard and scientific tool 📈. You can use it to make art 🎨: #rstats
Beside the {report} package (yesterdays note) there are more tools in the easystats collection. #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
Automatically describe data and models as text using the {report} package. #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…
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
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
A template for data analysis projects structured as R packages (or not) https://github.com/Pakillo/template by @…
{nplyr} has helper functions to work on nested dataframes: #rstats #datascience
{piggyback} makes it easier to attach large files (e.g. input data) to code in github repos: #rstats
Im using case_when() quite a lot, case_match() is new to me: #rstats
Primer to get you started with Optimization and Mathematical Programming in 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
If you use Quarto to make presentations for a professional setting, it is important to choose the right theme, e.g. #rstats
There are many situations were you need access to different R versions: rig is a way to manage them #rstats
TidyX: screencasts explaining different aspects of the R language and the coding process. #rstats
{spiralize} can be used to highlight cyclic data, e.g. multi year time series. #rstats
Not sure any longer which libraries your script actually needs? #rstats
Getting started with Shiny to make interactive web-apps with R: #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
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
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.
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
Find the best contrast between one color and a list of options, e.g. for labels in geom_tile: {prismatic::best_contrast()} https://emilhvitfeldt.github.io/prismatic/reference/best_contrast.html
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
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
Do you need better performance than what the standard #tidyverse functions have? {collapse} might be worth a look: https://sebkrantz.github.io/collapse/
Follow along when @… walks you through how she tackles a new dataset: https://www.youtube.com/c/JuliaSilge
{ggblanket}, a wrapper around #ggplot for quick, explorative plots with sensible defaults and less code. https://davidhodge931.github.io/ggblanket/
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
#DigitalIndependence #diday for #SocialScience #researchers:
#Rstats #Jamovi #Python <-- #SPSS #Stata
#LibreOffice #LaTeX #Typst editors #Gnumeric <-- #MicrosoftOffice
#CollaboraOnline <-- #GoogleDocs #GoogleWorkspace #Microsoft365
#Zotero <-- #Endnote #Mendeley #Citavi
#ODK #KoboToolbox #LimeSurvey <-- #Qualtrics #SurveyMonkey etc.
#requal #Taguette <-- #MaxQDA #AtlasTI #NVivo
#PoliticalScience #Economics #Statistics #Econometrics #QualitativeResearch #Evaluation #QuantitativeResearch
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
Do you (sometimes) use print() or message() for debugging your code? Next time you can use {icecream} instead: #rstats