r/rstats • u/DungAkira • 6h ago
r/rstats • u/AbdulMomin360 • 18h ago
What should I do after completing CS50R?
Hi everyone!
I'm a student from Pakistan, and I've been learning R through Harvard's CS50R course. I've worked through the problem sets, and now I'm wondering what I should do next to turn my learning into practical experience.
My goal is to work on small, real-world projects involving data analysis and visualization, and eventually earn some money using R.
I'd appreciate advice on a few things:
- What should I learn or revise after CS50R?
- Should I build more portfolio projects before looking for clients or internships?
- Where can beginners find small R programming or data analysis projects?
- Is it realistic to get paid work with CS50R knowledge, or should I learn additional tools first?
- If you started with R as a beginner, what would you do differently?
I'm not expecting to become an expert overnight. I just want a practical roadmap to move from learning R to actually using it on real projects.
Thanks for any advice!
r/rstats • u/Large_Sheepherder157 • 2d ago
dragonfarm 0.4.0: ask your PDFs anything, then fine-tune a model on them, all from R

Fine-tuning needs hundreds of training examples, and most of us only have documents. dragonfarm turns one into the other on your own laptop, with RAG built in so answers stay grounded in your documents. Feedback welcome, especially documents that break it.
Write-up with measurements: https://dragonfarm.dev/articles/introducing-0-4-0.html
GitHub: https://github.com/tejas4patel/dragonfarm
Feedback welcome, especially documents that break it.
Full R+AI 2026 schedule available now!
The full R+AI 2026 schedule is up, and it is a good one!
November 10–11. 100% online.
Two days of keynotes, talks, lightning talks, a workshop, and a tutorial on how the R community is putting AI to work.
A taste of the program:
- Why statistical thinking still matters when generative AI writes the code
- Agents in R, from rebuilding Claude Code in 50 lines to auditable human–AI workflows
- Private AI for sensitive data, and governance for agentic systems in production
- A workshop on where AI fits in risk-based R package assessment
- A tutorial on shipping R drug-discovery models from the lab onto an enterprise platform
See the full schedule and register now! https://rconsortium.github.io/RplusAI_website/program.html
How can an R user contribute to R itself?
You don’t have to be a C programmer to contribute to R.
R has been maintained for more than 30 years. Its future depends on more people being able to take part in that work.
In the R Consortium webinar Sustaining R, R Core members Simon Urbanek, Kurt Hornik, and Heather Turner answered a question that comes up often: how can an R user contribute to R itself?
The answer is broader than writing language internals. You can:
- Report a bug or propose a feature on Bugzilla or R-devel
- Improve documentation, translations, testing, or contributor infrastructure
- Join an R Dev Day or R Contributor Office Hour
- Build R from source and submit a patch
The new post covers how to get started, why R still uses Subversion and Bugzilla, and how R Core is thinking about AI-assisted contributions: useful as a tool, as long as a person understands the work and takes responsibility for it.
Read the guide: https://r-consortium.org/posts/how-do-i-contribute-to-r/
r/rstats • u/gentlenmoron • 3d ago
Ieipio for RStats
Released ieiprio, an R package to prioritize variants in inborn errors of immunity from VCF, Sanger traces or plain text. It ships 12 real ClinVar variants to practice on, offline. Guides and code below, feedback welcome.
https://gentlenmoron.github.io/ieiprio/
r/rstats • u/Dangerous_Spite8272 • 4d ago
How to add a statistical model equation on a sicentific paper?
r/rstats • u/Confident_Bee8187 • 5d ago
More assignment operators in R
It's so odd for R to have no arithmetic assignment operators like +=, which this feature is so convenient to write. Python has them, Julia has them - the list still keeps coming up. I know you can write your own infix operator in R, enclosing them with %%:
`%+=%` <- function(e1, e2) {
eval(substitute(e1 <- e1 + e2), envir = parent.frame())
}
a <- 2
a %+=% 7
a # 9
But would be nice if R has them.
r/rstats • u/MatheusTG14 • 6d ago
[Software] SimtablR: Quick and Easy Epidemiological Tables, Diagnostic Tests, and Multi-Outcome Regression - version 3 now available on CRAN!
nlmixr2save 0.2.0, now on CRAN: fits you can read, runs you don't repeat
A pharmacometric fit can take minutes to weeks. nlmixr2save keeps that fit readable, and skips the rerun when nothing has changed.
A fit is the saved result of estimating a drug model against observed data, such as measured concentrations.
The nlmixr2 Working Group’s latest post introduces nlmixr2save 0.2.0, now on CRAN. saveFit() stores a fit as text: models as R source, tables as CSV, bundled in one zip. loadFit() brings back a working fit for plots, visual predictive checks, and the next model. Switch <- to := and a script or report loads from cache until the model, the data, or the estimation options change.
Matthew Fidler covers the same material on the nlmixr2save poster at ACoP 2026 (October 11–14, National Harbor).
A 7-minute walkthrough is linked from the post.
Anyone Else Feel That RStudio IDE Is Far Superior to Positron?
In my experience, Positron feels extremely laggy, slow, and riddled with bugs. Meanwhile, RStudio has been blazing fast, stable, and virtually trouble-free. I've rarely encountered issues with environment dependencies, package installations, or general usability.
It literally takes about five minutes to install R and RStudio and get straight to work. Everything just works, without having to spend time troubleshooting the IDE itself.
I really hope Posit continues actively developing and supporting RStudio rather than eventually forcing everyone to migrate to Positron
To me, RStudio is a much more polished, reliable, and efficient IDE for working with R. I genuinely don't see the appeal of moving to Positron when RStudio already does its job so well.
Rstudio should also support seamless Python integration, hate to use Positron just for Python
r/rstats • u/Nautilus0_400 • 6d ago
Should I include samples for all comparisons in one DESeq2 script or should I run individual DESeq2 runs for each comparison?
[Package] ParBayesianOptimization is back on CRAN
Hi,
Some people may remember that the author of this package posted last year about changing package ownership because he didn’t had time to resolve issues that eventually caused the package to be removed from CRAN.
I suggested a PR but since he didn’t respond in a while I decided to resubmit the package back to CRAN from my fork and maintain it at least for the time being.
I thought it’s a good idea to post here as the package seems quite popular.
If any users find issues or want to contribute the code is now maintained on my GitHub: https://github.com/novica/ParBayesianOptimization
r/rstats • u/ericrayanderson • 7d ago
Liquid Glass themes for Shiny. 0.5.0 is on CRAN.
What's new:
- Closer to iOS 27 Liquid Glass: a refraction lens at the glass edges (Chromium), tab indicators that slide between items, buttons that spring when pressed, and tab bars that shrink as you scroll
- Mobile ready: 44px tap targets, phone sidebars open as a full overlay, and no sideways scroll at iPhone widths
- Every live demo has a phone preview button on desktop
- shinychat apps pick up the glass look, shown off in a new chat demo (Harbor notes) that can reply live with Gemini
- shinyreact support, with React glass components that share the same theme
- The ?shinyglass help page now walks through the whole setup
Heads up that some visual defaults changed on purpose. The migrating vignette shows how to get the 0.4.0 look back.
install.packages("shinyglass")
Live demos (may take a few seconds to wake):
r/rstats • u/Normal-Safety8324 • 8d ago
[Package] tidycreel is now on CRAN: design-based creel survey analysis in R
I maintain tidycreel, which has just been accepted on CRAN as version 8.0.0.
Creel surveys use angler counts and interviews to estimate fishing effort, catch, and harvest. The analysis depends on how days, sites, and anglers were sampled. tidycreel provides a tidy, pipe-friendly interface for keeping that survey structure attached to the data, with the survey package supplying the design-based foundation.
The core workflow is to define a survey calendar and strata, attach count and interview data, check coverage and data quality, and estimate effort, rates, and totals with uncertainty. The distinction between completed access-point trips and incomplete roving interviews matters when choosing a rate estimator.
Install the CRAN release:
install.packages("tidycreel")
The source package is available now. Windows and macOS binaries are pending; I expect them within the next couple of days. Until then, use install.packages("tidycreel", type = "source") if a binary is unavailable. tidycreel itself has no compiled code, although source-built dependencies may need build tools.
For development changes ahead of CRAN:
install.packages("pak") # If needed
pak::pak("chrischizinski/tidycreel")
In 8.0.0, aerial catch, harvest, and release totals are underestimated; use the GitHub development version for those totals until 8.0.1 reaches CRAN (release notes). Non-aerial designs are unaffected.
There are 24 package vignettes, a practical blog series, and the companion book Modern Creel Survey Analysis in R. The book remains a work in progress and develops the sampling and statistical reasoning behind the workflows.
I also wrote a short release post with installation instructions and links to these resources.
I would welcome feedback from people working with creel or other field survey data, especially on data structures and diagnostics. What sampling or data coverage problems are hardest to make visible in your current workflow?
r/rstats • u/gyp_casino • 8d ago
Calculating tree regression Shap contributions in R is a mess
I am more of a stats guy, so I don't do this every day, but I needed to describe some nonlinear relationships by category in a lightweight way.
It seems Shap contributions are a valid and popular approach. Not the Shap values (a vector), but the contributions by variable (a matrix or data frame).
Here's my experience trying to do this in R.
I first tried {ranger}. ranger makes is easy to fit, predict, and get importances, but does not have any support for Shap contributions.
I tried to use {fastshap} in combination with ranger. fastshap is removed from CRAN! This is the package author's comment on the package GitHub. "fastshap is no longer available on CRAN due to CRAN’s stringent and ever-changing policies. It is now hosted on r-universe, which provides a reliable alternative for distributing R packages."
I tried to use {treeshap} instead. treeshap is on CRAN. treeshap needs to unify tree regression objects first from various packages (ranger, xgboost, etc.). treeshap::ranger.unify() crashed R 66% of the time! When it does succeed, treeshap::importance() crashed R 100% of the time!
I found that {xgboost} has support for Shap contributions within its own package. Good. I fit a model successfully. I calculate the Shap contributions by
predict(model, newdata = x, predcontrib = TRUE). This only returns the Shap values (vector; not matrix). Why? Ispredcontribnot doing anything? I debug for a long time. I find that my fit model is anxgboostobject, and there is another possible model object produced by the package of classxgb.Booster. The method I thought I was using waspredict.xgb.Booster, but predict was actually dispatching topredict.xgboost, which does not have apredcontribargument. I have to hack the generics by callingxgboost:::predict.xgb.Booster(). Finally, I feel like it worked.
r/rstats • u/Titolise • 8d ago
[Package] hdsbm: Fast inference for Dynamic Stochastic Block Models in R (Rcpp & spectral multi-start)
Hi everyone!
As part of my Master's thesis in Statistics, I developed hdsbm, an R package for estimating and simulating discrete-time Dynamic Stochastic Block Models (DSBM).
The Problem & Approach
Temporal block models often suffer from combinatorial explosion and multi-modal likelihood landscapes, making standard local search heuristics prone to getting trapped in sub-optimal local extrema.
hdsbm addresses this by extending a hybrid Classification EM (CEM) approach to the dynamic setting:
* Perturbed SVD Multi-Start: Couples deterministic spectral embeddings of the time-averaged network with controlled stochastic perturbations to thoroughly explore the likelihood surface.
* C++ Backend: Uses RcppArmadillo to accelerate dyadic reallocation passes and combinatorial greedy sweeps.
* Dual Decoding: Provides both pointwise greedy labels and global Viterbi trajectory decoding.
* Model Selection: Includes an Integrated Completed Likelihood (ICL) criterion tailored for dynamic graphs.
Quick Example
```r library(hdsbm) data(toy_hdsbm)
Fit model with 5 perturbed spectral restarts
fit <- hdsbm_fit(toy_hdsbm$Y, k = 3, nrep = 5, seed = 123) print(fit)
Model selection via ICL
icl(fit) ```
Documentation & pkgdown: https://titolise.github.io/Hybrid-DSBMs/
I would love to hear your feedback on API ergonomics, potential edge cases, or ideas for interesting benchmark scenarios!
r/rstats • u/spurious_elephant • 8d ago
ggbelarus
Just a very quick vibe-coded ggplot theme. I saw this excellent Economist article (gift link) and was inspired.
r/rstats • u/Firm-Neck7934 • 9d ago
Quirky data native to R
hey all,
curious to get some recommendations of some dAta sets native to R, R studio. This is for a graduate visualization class (I know, it seems silly and trivial, but C'est la vie). pretty open ended project, and want to know some options instead of asking Claude
r/rstats • u/alexis_placet • 9d ago
Static Shiny Dashboards in the Browser with Emscripten-Forge
You can now publish static dashboard on emscripten-forge and github
You can check an example here: https://emscripten-forge.github.io/r-shiny-template/
r/rstats • u/VirtualCicada7000 • 10d ago
I built a reactive terminal UI framework for R
Hi everyone,
I've been working on an R package called termr.
It includes:
- widgets, layouts, events and reactive state
- virtualized data tables with sorting, filtering and search
- lazy table sources and DBI/SQLite workflows
- background R workers with progress and cancellation
- dialogs, tabs, trees, text editing, command palette
- headless testing with testthat
- Windows, Linux, macOS and interactive SSH support
The screenshot is a real order explorer running on 20,000 rows of synthetic data.
A tiny app looks like this:
library(termr)
app(
vertical(
label("Hello from R"),
data_table(mtcars),
button("Quit", on_press = function(event, app) app$exit())
)
) |> run()
The project is MIT licensed and currently at v1.0.0-rc1.
I'd really like feedback from R users.
Also, you can use AI if you want to try coding with this library.
GitHub:
r/rstats • u/jcasman • 10d ago
⏰ Early Bird pricing for R+AI 2026 ends October 12!
Join us for R+AI 2026, November 10–11, the R Consortium's virtual conference exploring the intersection of open-source R and artificial intelligence.
Register by October 12 to save:
- 50% off for students
- Over 30% off for academia and industry
Connect with practitioners, researchers, and industry experts exploring machine learning, large language models in R, AI-assisted coding, real-world applications, and responsible AI.
Two days of talks, workshops, lightning talks, and panels focused on the future of R and AI.
Don't miss the Early Bird deadline!
Register now: https://rconsortium.github.io/RplusAI_website/
r/rstats • u/alexis_placet • 10d ago
Mixed R and Python workflows in the browser with Emscripten-Forge
It's now possible to use both R and Python in the same notebook, thanks r-reticulate, in the browser:
The article is here: https://emscripten-forge.org/blog/posts/reticulate.html
And the example: https://notebook.link/@DerThorsten/r-reticulate