r/rstats • u/OutdoorSportBoy • 4h ago
r/rstats • u/SaikonBr • 17h ago
Long time ago i made a simple script to animate a maze generation process, it was well receiveid, but i set to private the repo and lost all my stars. Decided to give a lift up. Today in the era of agents this is trivial, but it was a great archieviement for me at the time. So here its a nice gif.
Also some mazes being solved
Full gallery: https://matfmc.github.io/mazegenerator/articles/gallery.html
r/rstats
•
u/New-Jellyfish-9498
•
1d ago
cuplyr: dplyr on an NVIDIA GPU
I've been building cuplyr, a dplyr backend for NVIDIA GPUs built on RAPIDS cuDF. It works pretty much like dbplyr. You can upload a data frame with tbl_gpu(), write normal dplyr code and collect() or compute() the results. On a 10-million-row pipeline it runs about 40x faster than dplyr on my machine. But depends a lot on different tasks.
It's still experimental, and I'm sure there are plenty of cases I haven't hit yet. If you try it on dplyr code you already have and something would either break or run extremely slowly. I would appreciate a bugreport! Just remember to set options(cuplyr.fallback = "warn") as the default behaviour is currently to fall back to the CPU quietly.
You don't need your own GPU to try it. This Colab notebook installs it on a free GPU, and then you can paste in your own code: https://colab.research.google.com/github/bbtheo/cuplyr-material/blob/main/notebooks/try-cuplyr-colab.ipynb
If you would want to install it on your own machine you need Linux, an NVIDIA RTX 20-series card or newer, and CUDA 12.2+.
Most of the code was written with a multi-agent Claude setup, using dplyr's own test suite to check the results extensively.
Repo: https://github.com/bbtheo/cuplyr
TLDR: dplyr on a GPU
r/rstats • u/davisvaughan • 1d ago
rray: An array focused R package, inspired by NumPy
After SEVEN LONG YEARS I am thrilled to be able to say that rray is back on CRAN!
rray is an array focused R package (not data frames, for once!), extremely inspired by NumPy.
- Broadcasting
- Combining and splitting
- Flexible slicing
- Long vectors
- And so much more!
Broadcasting is the idea of applying the tidyverse recycling rules (length 1 recycles to any other length) to all axes of an array. It allows you to, say, add a 2x1 array to a 1x3 array in a meaningful way, with a 2x3 result. Read about it in our broadcasting vignette:
https://rray.r-lib.org/articles/broadcasting.html
rray has a very powerful (and fast!!) family of functions for combining and splitting arrays. Like everything else in the package, they support broadcasting, allowing you to combine in ways that rbind() and cbind() don't allow:
https://rray.r-lib.org/articles/toolkit.html#combining
rray has "long vector" support throughout the entire package, meaning that it works with arrays longer than ~2 billion elements with no issues.
Array terminology can be highly confusing, so rray documents precise definitions exactly once, and uses them throughout the package. rray is intentionally very consistent! Once you learn one concept it tends to translate well to the other functions in the package:
https://rray.r-lib.org/articles/terminology.html
rray is an interesting experiment for me. It was created almost entirely from my phone using Claude's and Codex's remote-control features. But it is not slop! I personally vouch for every line of code, and ruthlessly interrogated each one. As an example, here's the development of `rray_if_else()`. After planning and creating with Claude, I followed up with ~30 corrections to forge it into something I felt met my high quality bar (I am a maintainer of both dplyr and vctrs, so my standard is extremely high). The result is that rray's R and C code don't "feel" AI written to me.
https://github.com/r-lib/rray/pull/137
I've created a neat visualization that tracks rray's development over time. You can see every conversation, in full, paired with the PR and function it generated. It also shows approximate cost at API prices (though I used a subscription).
r/rstats • u/Pei-Pa-Koa • 1d ago
Expired GP key for CRAN-R Debian packages
Hi,
The GPG key used to sign Debian packages for CRAN-R has expired:
LANG=en gpg --list-keys 95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7
pub rsa4096 2021-11-16 [C] [expired: 2026-11-15]
95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7
uid [ expired] Johannes Ranke <johannes.ranke@jrwb.de>Can anyone ask around on the r-sig-debian mailing-list?
r/rstats • u/Mema9080 • 1d ago
Need advice: Using RStudio for my master’s thesis data analysis and making sure I’m doing things correctly
Hi everyone!
I’m currently working on the statistical analysis for my master’s thesis in nutrition science, and I’d really appreciate some advice from people experienced with R and research data analysis.
My study involves survey data from over 1,300 participants, including demographic variables, dietary frequency data, knowledge questions, and Likert-scale responses related to attitudes and behaviors.
I’ve studied statistics during my degree, but applying statistical methods to a real dataset feels quite different from learning them in class.
I’ve been using RStudio and AI to help with coding, data cleaning, statistical tests, and visualizations. While AI has been incredibly helpful, I sometimes worry about whether the suggested methods are statistically appropriate, even when the code runs without errors.
I genuinely want to understand what I’m doing rather than simply copying and running code, especially since the results will be part of my thesis.
For those who use R in academic research:
How do you verify that your statistical analyses and R code are correct?
What resources helped you bridge the gap between statistical theory and practical analysis?
Do you have any advice for using AI responsibly when writing or reviewing R code?
I’d really appreciate any guidance, resources, or personal experiences.
Thank you!
r/rstats • u/OutdoorSportBoy • 1d ago
Will R development move to GitHub?
It feels a bit surprising that core R is still developed on SVN when almost its entire package ecosystem relies on Git and GitHub. Are there any plans to eventually migrate R to GitHub? Moving over could really attract more contributors.
r/rstats • u/Delicious_Abies_9708 • 20h ago
Initial VuPy release: CuPy-like GPU array library backed by vulkan. any and all feedback is preferred.
r/rstats • u/LuscasMathias • 1d ago
erro fatal no Rstudio quando tento puxar um dataframe
reddit.comr/rstats • u/majorcatlover • 1d ago
[Q] What would be the best approach to inter-rater reliability for temporally annotated events?
reddit.comr/rstats • u/Ok_Mortgage1263 • 5d ago
mascot 0.1.0 on CRAN: animated characters for Shiny apps and Quarto pages
mascot 0.1.0 is now on CRAN. It puts a small character, drawn in code, into your Shiny app. You set its mood and status from the server, and it gives a short wiggle when the state changes.
For Shiny specifically:
# UI
mascot("helper", mood = "idle", status = "Ready when you are", placement = "inline")
# server, when the state changes
update_mascot("helper", mood = "worried", status = "Two dates need a look")- Works inside modules, golem and rhino-style apps (`mascot_examples()` has one of each, plus a form check and a long task)
- `update_mascot()` also shows a speech bubble or plays a nod or wave
- `mascot_popup_menu()` makes the mascot a button with a menu; the choice comes back as `input$<id>_menu`, and it works with the keyboard and screen readers
- Floating in a corner (minimisable) or inline in the page
- Follows your `bslib` theme or your own brand colours, light and dark mode
- Everything ships with the package, no CDN, so it works offline; reduced motion is honoured
- `mascot::mascot_studio()` lets you try every argument and copy the code
Install: `install.packages("mascot")`
Docs: https://insightsurge.github.io/mascot/
Source: https://github.com/insightsurge/mascot
Some parts are experimental in 0.1.0 (Knurl, Neer, the studio, custom character files). I'd like to hear how it fits into your apps and what's missing.
r/rstats • u/The_God_was_Here • 5d ago
How do you plot calibration for daily range forecasts over time in ggplot?
Have about 120 days of daily forecasts for a price series. each day has a forecast median, an 80% interval and the actual close. i want to show two things clearly:
- how taken the actual landed inside the 80% band, and whether that changes over time
- whether the misses cluster on certain kinds of days(high vol)
right now i have a geom_ribbon for the band with geom_point for the actuals, plus a separate bar chart of hit rate by month. it works but feels clunky and nobody gets it on first look
any better ways to show coverage time? a rolling coverage line? some package i don't know about? happy to share code if useful
r/rstats • u/Perfect_Call3687 • 5d ago
Free Beginner-Friendly R Programming & Computational Statistics Course (3 Weeks)
Hi everyone!
I'm from National Tsing Hua University in Taiwan, and I'd like to share a beginner-friendly R programming course we're offering on FutureLearn.
Data Science for Business Analytics: Introduction to Computing
The course covers R programming, basic statistics, data visualisation, simulations, and bootstrapping through practical activities and real-world datasets.
Course details:
- Free to learn: Course materials are released weekly, with free access limited to 3 weeks. Certificates and extended access require a paid upgrade.
- Duration: 3 weeks, approximately 5 hours per week
- Format: Fully online and taught in English
- Level: Beginner-friendly; no prior programming experience required
If you're new to R or interested in computational statistics, this might be a useful starting point.
Course link:
https://www.futurelearn.com/courses/data-science-for-business-analytics-introduction-to-computing
r/rstats • u/Pristine_Gain_1476 • 7d ago
Remedy for statistically significant interaction term in Schoenfeld residual (programming in R) [thesis]
Dear all!
I am conducting a Cox proportional hazards analysis and tested the proportional hazards assumption using Schoenfeld residuals. Two interaction terms between predictors showed statistically significant results, suggesting that these effects may vary over time. I am therefore unsure which approach would be most appropriate in R to address this.
Would tt() be suitable in this case? Would it work for interaction terms?
Initially I was thinking of tmerge(), but that doesn't work because this would only work if it is the treatment, right? (although the interaction is between treatment group and an intake variable).
I initially also thought of using strata(), but I guess that's only for categorical variables?
I would be very grateful for any advice on how to handle this appropriately in R, and what remedy there is. Recommendations for relevant literature would also be very welcome.
r/rstats • u/simonpcouch • 8d ago
commons: Trustworthy data agents
Simon here, an engineer at Posit. We recently released commons, an open source R (and Python) framework for building trustworthy data agents. commons agents can reach directly for analysis code that you already trust from R packages, Quarto docs, Shiny apps, and database views.
r/rstats • u/sporty_outlook • 7d ago
Can Existing Local Shiny Apps Be Deployed Through Dataiku Without Using Its Low-Code Features?
Our company uses Dataiku, and I'm exploring whether it could serve as a deployment platform for several R Shiny applications I've already developed and currently run locally.
I'm not interested in Dataiku's no-code or low-code development capabilities. My goal is simply to deploy my existing Shiny applications so that other employees can access them through a web browser.
Unfortunately, we don't have access to Shiny Server, Posit Connect, or shinyapps.io.
I've come across several Dataiku articles highlighting its deep integration with R and support for web applications built using frameworks such as Shiny, Dash, and Bokeh.
https://doc.dataiku.com/dss/latest/R/index.html
https://doc.dataiku.com/dss/latest/webapps/shiny.html
I have a few questions:
- Deployment feasibility: Can an existing, fully functional R Shiny application be deployed directly through Dataiku without substantially modifying its code?
- R package dependencies: My applications depend on numerous R packages. Can these be installed within Dataiku, or would IT administrator privileges be required?
- Deployment process: How straightforward is the deployment process? Can I upload my existing app.R file and supporting files, configure dependencies, and publish the application?
- Licensing and permissions: Does hosting Shiny applications require additional Dataiku licenses, plugins, or administrative configuration?
When running these applications locally, I've generally been able to install R packages without administrator privileges. I'm particularly interested in whether Dataiku offers similar flexibility.
Has anyone successfully deployed existing R Shiny applications through Dataiku? How does the experience compare with using a dedicated Shiny hosting platform?
r/rstats • u/Pristine_Gain_1476 • 8d ago
Remedy for statistically significant interaction term in Schoenfeld residual (programming in R) [thesis]
reddit.comr/rstats • u/PandaJunk • 9d ago
I really like R and quarto, but marimo (python) and marimo-pair is really kind of amazing in an agent-first workflow
I've been using Rmd and the qmd and quarto for many years now. Love it. But as my workflow becomes more agentic, I've found that the agents don't really understand the outputs they're making. That is, the figures look weird, the tables look weird, which then makes their interpretation off. I can get around this by pushing outputs to intermediates (e.g., png), but that becomes kind of a hassle.
With Marimo, though, the agent just knows what everything is, because it's all just python code. I don't entirely know what the secret sauce is, but it just kinda works. Don't get me wrong, I still have to tweak stuff, just not as much. And with plotnine and great_tables plus polars (which I can chain together sort of like dplyr), I have something that I actually understand and that looks decent.
Not trying to convince anyone to abandon anything. Feels like a "yes and" situation. But instead just wanted to share this with a group a tool that is neat and could even feed into quarto via ipynb. One more tool in the tool belt, as it were.
r/rstats • u/binarypinkerton • 9d ago
R package: spigot to let you use plumber APIs inside a shiny app.
kent-orr.github.ior/rstats • u/V3nt-ilator • 10d ago
[Update] firstR, a tool for finding beginner-friendly R open source issues, now loads results in seconds
A while back I posted firstR (https://firstr.dev), a Shiny app that finds beginner-friendly open issues in R packages, including smaller repos the usual good-first-issue sites miss. Thanks to everyone who tried it and told me what was broken. The biggest change is speed, since search no longer crawls GitHub live. I also made the filters update instantly without searching again and added a skip for issues that already have a linked PR (among other things).
Thanks to u/Unicorn_Colombo, u/no_username_taken, u/komodorian, and u/hemping0 for the feedback on the original post!!
[package] ggindex - Numbered Focus Points for 'ggplot2' Plots
ggindex is a new R package, that marks selected points of a ggplot2 plot with numbered markers and explains the numbers in a legend, as on an annotated map. This is the gap that the package tries to fill.
An example is a campus map that numbers its buildings and lists them in an index next to the map, so a reader can find the library or the sports centre at a glance. The documentation includes this annotated map.

Scatter plots and maps are the most obvious choicies where numbered markers can be used. But there is no limitation, and the documentation outlines how to add index markers to any plot.
See more at: https://discindo.github.io/ggindex/index.html
r/rstats • u/Balance- • 11d ago
I tried Quarto 2, the experimental Rust rewrite of Quarto: what works today
I spent an afternoon with q2, the experimental Rust implementation of the next Quarto from the Quarto team at Posit. The README is clear that it's not production-ready, but it's further along than I expected. (I'm not affiliated with Posit.)
What worked (v0.42.0, Windows):
- A short report with TOC, numbered sections, a figure, a table, cross-refs, footnotes, citations and math rendered to PDF via Typst in about 9 seconds. Localised labels were right too (I tested Dutch: "Figuur", "Tabel", "Inhoudsopgave").
- Word output turns q2's inline review marks (
[++ inserted],[-- deleted],[>> comment]) into real Word tracked changes and comments. There's also a Word import that goes the other way. That could be useful for co-authors who live in Word. - Error messages come with codes and line/column numbers. The markdown dialect is stricter than Pandoc's: a stray
$or_is an error instead of a silent guess. - There's a built-in collaboration server (
q2 hub) and an MCP server (q2 mcp) so AI agents can edit the same live documents as people.
Rough edges:
- PDF is Typst only, and you need recent Pandoc (3.12+) and Typst installed separately.
- Review marks are printed as plain text in the PDF, so resolve them before you publish.
- I didn't test code execution. The recent PRs show knitr and Ark support for
{r}cells being actively worked on. - The hosted collaboration service (quarto-hub.com) is an invite-only demo.
It's moving fast (weekly releases), so this may be out of date soon. Has anyone run real R-heavy documents through it yet?