r/rstats • u/shockandclaw • 57m ago
r/rstats • u/Ok_Mortgage1263 • 3d 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 • 2d 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 • 3d 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 • 4d 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 • 6d 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 • 5d 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 • 6d ago
Remedy for statistically significant interaction term in Schoenfeld residual (programming in R) [thesis]
reddit.comr/rstats • u/PandaJunk • 7d 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 • 7d ago
R package: spigot to let you use plumber APIs inside a shiny app.
kent-orr.github.ior/rstats • u/V3nt-ilator • 7d 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- • 9d 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?
r/rstats • u/Confident_Bee8187 • 9d ago
Why does setwd() even exists?
This function doesn't work well in theory and it's so bad in practice. I've seen this a lot everywhere (from my colleagues code to the codes I've seen online), and still exists in a lot of projects today. I don't know about you, but I never liked it and I will never recommend this. I am not recommending to hard code the path either.
Edit: I am not trying to make R look bad here, but I only would like to say how bad it could get, like some repercussions we'll get such as reproducibility disruptions. Using 'here' won't solve most of the problems either.
r/rstats • u/shikokuchuo • 11d ago
mizu: async and parallel R over lock-free shared memory, task round trips under 1 µs, zero-copy exchange with Python
Hi, it's Charlie, author of mirai. Today I'm releasing mizu 0.1.0, a package for async and parallel computing over lock-free shared memory, together with pymizu for Python and libmizu, the C core both are built on.
Socket-based frameworks pay for every message multiple times: serialize, copy through the kernel, deserialize. A trivial task round trip costs about 100 µs. mizu writes each payload once into memory both processes share: the same round trip falls to under 1 µs. Large vectors and data frames are mapped and arrive as ALTREP views, so they are not copied at all.
Because R and Python share one wire format, the workers in a pool can be the other language: a data frame crosses to Python workers as an Arrow-backed frame, and a polars result comes back as an ALTREP-backed data frame that can be optionally be read as Arrow.
It plugs into later and promises pipelines, so tasks and maps can be used as promises in Shiny. It also interoperates with mori: a mori shared object crosses a mizu channel or pool zero-copy.
On four deliberately adversarial tidymodels workloads, each sized to stress data movement rather than compute, 12 workers gave 6.7–8.1x speedups where mirai, already the most performant parallel framework in R, reached 1.4–6.4x.
You may find more details, benchmarks and example usage in the blog post: https://opensource.posit.co/blog/2026-11-05_mizu-0-1-0/
Try it out from CRAN: install.packages("mizu")
r/rstats • u/gene_shackman • 11d ago
Free to use statistical packages, including R GUIs
Hi all
I have a report comparing outputs of free to use, easy to use, GUI based, statistical software packages. Many of these, (jasp, jamovi, bluesky, rkward, r-instat) are GUIs for R.
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4105959
I compare outputs: mean, frequency, correlation, scatterplot and regression. The packages include the GUIs for R, and pspp, develve, libre office, epi info, sofa, invivostat, gretl and Past.
Fortunately, all the packages give pretty much the same results, so they are all good to use.
I hope folks find this useful, and if you know of any free to use, menu driven stat packages I missed, especially GUIs for R, let me know.
r/rstats • u/jcasman • 10d ago
How do you keep R in the loop when everything's going agentic?
At R+AI 2026, Marcin Dubel (Head of Technology, Appsilon) shows how to keep your R workflow in the bigger agentic picture with Mediforce, Appsilon’s open source solution for agentic workflows.
Bring R-based analysis into a larger system that includes human actions, other tech-stack scripts, and AI agents on top. Control the execution environment, business approval roles, and audit every action. R stays part of automation and efficiency.
"Keep your R workflow in the big AI picture"
November 11 · 1:55 PM Eastern · Online
R+AI 2026 is the R Consortium’s conference on R and AI: November 10–11, fully online, with live Q&A and recordings.
See the full talk abstract and register now!
https://rconsortium.github.io/RplusAI_website/Abstracts.html#marcin-dubel
r/rstats • u/coatless • 11d ago
R Observatory 2.0: same telescope, new lens, new address
Last time R Observatory turned up here, it put everything about an R package from CRAN or Bioconductor on one page. It still does, now with at least twenty-three features (!!) added since July and a fresh design across the whole site.
Three notable features from the twenty-three:
AI coding assistants in R packages, in what may be the first large-scale survey of its kind. R Observatory searched 15,169 GitHub repositories behind CRAN packages for the files, ignore lines and commits that Copilot, Cursor, Codex and over thirty other assistants leave behind, down to which model versions get named.
Assess lets you pick CRAN packages, choose rules from fifteen measures (coverage, check results, advisories, CRAN deadlines and so on) and see which pass. If your job involves a validation spreadsheet, this one is for you.
Smartphones. Every page fits one now, so checking reverse dependencies from the grocery line is officially supported.
The site also moved from r-observatory.thecoatlessprofessor.com to observe.rstats.dev. Its own domain provides us with room to move to bigger hosting someday (old links still redirect).
Ads are present to help pay the hosting bill. So far the bill is winning, which may mean rejiggering a feature or two along the way.
With five minutes to spare, take the tour on YouTube. Anyone who'd rather read can find what changed in the 2.0 write-up. To dig through the data yourself, everything on the site comes from one database, rebuilt each day and published for anyone to explore.
P.S. Python is next, starting with the 15,000 most downloaded packages on PyPI. For scale: CRAN holds 25,623 packages, PyPI 933,598. The telescope needs a bigger mirror 😃
R Observatory has no affiliation with the R Project, the R Foundation, CRAN, Bioconductor, the R Consortium or Posit.
r/rstats • u/jcasman • 12d ago
R Consortium Awards Second Round of 2026 Technical Grants
r-consortium.orgSix new R Consortium technical grants... and why we fund this work
Behind the R packages and tools you use every day is infrastructure that someone has to build, maintain, and modernize. The R Consortium's Infrastructure Steering Committee (ISC) funds that work through technical grants. They support open source development that benefits the whole R community.
We're pleased to announce the second round of 2026 grant recipients. Six projects will receive $37,000 in total:
🔹 Measuring R Performance (Pierre Donat-Bouillud, Matěj Kocourek, and Filip Křikava). A representative benchmark suite, a public performance dashboard, and profile-guided builds for the R interpreter.
🔹 babelrd (Aditya Bansal). Machine-drafted, human-reviewed translations of R help pages, so more people can read R documentation in their own language.
🔹 ARcenso (Andrea Gomez Vargas and Emanuel Ciardullo). More of Argentina's historical census data, with a first CRAN release.
🔹 Modernising the R Journal Publishing Infrastructure (Emi Tanaka and the R Journal editorial team). A LaTeX-to-HTML workflow, a Quarto article template, and a searchable website.
🔹 Kubernetes R Client and Batch Framework (Alexandru Mahmoud). A Kubernetes client for R, plus a framework for declaring batch jobs inside R packages.
🔹 Native GeoArrow Computation Engine (Josiah Parry). A fast, Rust-based spatial engine with no system dependencies, plus better GeoParquet support.
The recipients are in the Czech Republic, India, Argentina, Australia, Canada, Ireland, and the United States. They are package maintainers, researchers, journal editors, and national statistics office staff.
Congratulations to all of them. We'll share updates as these projects deliver releases and documentation.
👉 Read the full announcement: https://r-consortium.org/posts/r-consortium-awards-second-round-of-2026-technical-grants/
Have an idea that could strengthen the R ecosystem? Check the Call for Proposals page for the next funding opportunity: https://r-consortium.org/all-projects/callforproposals.html
r/rstats • u/jcasman • 12d ago
Upcoming R+AI 2026 presentation: A Practical Framework for R+AI in Regulated Industries
At R+AI 2026, Nammn Joshii (Director, AI Innovation and Delivery, ProCogia) will share a practical framework for preserving traceability, governance, reproducibility, and control as AI moves into higher-consequence workflows.
It's a deployment from public AI services and enterprise APIs through private cloud, on-premises, and air-gapped environments and the trade-offs across control, speed, complexity, and cost. The goal is choosing the level of control that matches the workload’s risk, value, and scale.
"From Experimentation to Trusted Production: A Practical Framework for R+AI in Regulated Industries"
November 11 · 2:35 PM Eastern · Online
R+AI 2026 is the R Consortium’s conference on R and AI: November 10–11, fully online, with live Q&A and recordings.
See the full talk abstract:
https://rconsortium.github.io/RplusAI_website/Abstracts.html#nammn-joshii
r/rstats • u/evgeny_metelkin • 13d ago
DynMSR: an R package for simulating SBML/Heta models with mrgsolve
If you work with dynamic models in biology, you may have encountered SBML, a standard format for sharing models. In R, mrgsolve can be used to simulate such systems, including models used in pharmacology.
I developed DynMSR to help bring SBML and Heta models into R and prepare them for simulation with mrgsolve. The package is now on CRAN; loading these models also requires Heta Compiler.
install.packages("DynMSR")
Feedback is welcome.
r/rstats • u/AsleepWalk5628 • 13d ago
Pairwise MANCOVA analysis for a desperate student.
Hi everyone,
I am quite new to R language and I have been stuck on this issue for a week now.
I have simple dataset with these variables:
- 2 independent - Group (factor variable with levels 0, 1, 2 or "Healthy", "Mild", "Advanced") and BMI_SDS (the covariate; numeric, continuous variable)
- 9 dependent - Principal component scores 1-9, all numeric
I am asking a simple question - Do the PC scores depend on Diagnosis Group and BMI? Do Diagnosis Groups differ from each other? And what role does BMI play in it?
In other words, I want to see if I can adjust for different BMIs across the Groups and still see a differentiation between the diagnosis Groups.
Now, performing the MANCOVA is simple enough, I used this code:
mancova_model <- manova( as.matrix(mancova_data[, pc_names]) ~ BMI_SDS * Group,
data = mancova_data)Both Group and BMI_SDS are significant, while the interaction Group*BMI_SDS is NOT:
> summary(mancova_model, test = "Pillai")
Df Pillai approx F num Df den Df Pr(>F)
BMI_SDS 1 0.45941 13.7864 9 146 6.971e-16 ***
Group 2 0.29124 2.7839 18 294 0.0001782 ***
BMI_SDS:Group 2 0.16308 1.4501 18 294 0.1073350
Residuals 154
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1All I need now is looking at the pairwise comparisons 0-1, 0-2 and 1-2.
Is there a simple function or a combination of functions that would do this pairwise MANCOVA for me? Everything I have found is either ANOVA or ANCOVA (emmeans_test) or MANOVA (mvpaircomp) or MANCOVA where the covariate is a factor variable (emmeans), but NOTHING for MANCOVA where the covariate (BMI_SDS here) is numeric.
I thought that as long as the interaction is not significant, the pairwise comparison should be easy, but apperently not. Or maybe I am just dumb and the answer is obvious, but I really cannot find anything. I tried asking ChatGPT as a last resort and it gave me an answer, but it was 20 rows of code where I had no idea what was happening and I don't want to use that.
Could anyone help me wth this issue? I would be so grateful.
Quarto 1.11 is out: early release for a Deno security update, plus accessibility, Typst and Julia improvements
Crossposting from r/quarto for R users:
Quarto 1.11 ships a security update to Deno, the runtime bundled with Quarto, and it is not backported to 1.10, so upgrading is recommended.
One change directly relevant to R figures: `fig-alt` is now honored in Word output, including for figures produced by code chunks.
Questions welcome here or in the original thread.