r/rprogramming • u/Competitive-Kick-729 • 9h ago
r/rprogramming • u/Amazing-Juice9885 • 1d ago
New ro programming
Helloo! I’m trying to build my two first websites - one for personal use for me and my friends/family and another one for a company I work for. I have absolutely no idea how to do it, never programmed before and am not a programming person. Any tips , any first steps, where should I do it? Which programming tool should I use? I though and heard HTML or Java is thee “easiest” to work with. And what would be the difference between a no-code type of website building?
r/rprogramming • u/Zestyclose_Day_3094 • 1d ago
URGENT: RStudio 2026.11.0 + R 4.6.2 on Windows: "second argument to 'R_getVarEx' must be an environment" floods console, IDE lags, then "R Session Aborted". Exam project due TONIGHT
I'm in serious trouble and need help fast. I have a graded R project due tonight and RStudio keeps breaking while I work.
Setup
Windows 10/11
RStudio 2026.11.0 (Build 203, "Montauk Daisy", released 2026-11-06)
R 4.6.2
Working in an R Markdown file (.Rmd). Packages: tidyverse (dplyr, ggplot2, tidyr), DescTools, GGally
What happens
Everything ran fine at first (data import, merging, loops, ggplot box plots).
Then the console and the editor started printing this error over and over, hundreds of times:
Error: second argument to 'R_getVarEx' must be an environment
The console has "Show Traceback / Rerun with Debug" next to it.
RStudio lags badly, and sometimes commands do nothing at all.
Restarting R got stuck on "Restarting R..." for more than 10 minutes.
Running even names(pk_data) in the console gave a "R Session Aborted – R encountered a fatal error" dialog.
After restarting RStudio, it hangs on a spinner that says "R Notebook...".
What I've already tried
Environment pane set to "Manual Refresh Only"
Unticked "Show output inline for all R Markdown documents" in Global Options, then switched the document to "Chunk Output in Console"
Cleared the console and removed old inline chunk output
ungroup() on the data
Restarting R and RStudio, and ending it in Task Manager
Confirmed RStudio is already 2026.11.0, so updating RStudio is no help
r/rprogramming • u/Glittering-Fly-7813 • 2d ago
On learning S4
Felt like writing something, so bear with me 🧎🏻.
I recently started a project in bioinformatics with almost no R experience. While it has been a steep learning curve from the beginning, I've been able to thankfully keep up with the project by slowly making my way through the R4DS book on the side (thank you so much Hadley!).
So life was great, but it did not last long as I met my first S4 object :(.
Compared to other R concepts, S4 has been the most challenging to understand. I've watched videos and read webpages, but the concept just didn't click. And worse, I feel like I'm lacking so much background knowledge to even understand what S4 is, as in I need to understand Y to understand Z (S4), but I lack the knowledge X to understand Y and so on until the letter A.
And now I feel like I'm at C, but it's getting better! I can feel that I'm making progress towards understanding S4, and I'm starting to see why it is a nice thing to have.
So one day, I will look back at this post with a new set of problem and think how simple this whole thing was.
r/rprogramming • u/Top_Replacement_1262 • 4d ago
Plot curves for coxph frailty model
Hello I am asking if anyone is aware of how to draw adjusted cum hazard and survival curves after running a frailty model using coxph. I am using the Surv(start, stop ,event status) framework with gap times. Importantly, I have had to stratify a binary variable as it violated the proportional hazards assumption - using strata(var). The goal is to do curves for the overall sample (showing the two strata), and then separately for each individual variables. I have an interaction and it would be good to plot the hazards of 1 variable versus the actual values of the other variables. Any guidance, particularly code implementation, of this would be very helpful.
I am a clinician and not a statistician, but also not trying to use AI at all as Im against it and dont want to have to use it and then declare it.
I am aware of other setups for example cluster() option for robust standard errors as well as frailtypack, coxme, etc. The curves could be drawn in easily with the cluster() option. However, the research question very much needs a frailty model. Also Ive written out the whole thing based on the frailty findings and Kaplan Meier curves...the findings dont necessarily remain with other modelling options which is a problem.
r/rprogramming • u/Different-Engine8778 • 8d ago
ADS programmer at Genentech USA
reddit.comr/rprogramming • u/itsyourfavbishbish • 17d ago
R language help
I HAVE AN URGENT HELP NEEDED WITH THE R SOFTWARE. ANYONE WHO IS A PRO AT IT PLS CONTACT ITS A CODE RED SITUATION!!
thx <3
r/rprogramming • u/Interesting_Day_7674 • 26d ago
Inserting csv/excel file
Hi im fairly new to r and trying to import excel files I have all the steps down with working directory but it says the file doesn't exist yet list.files() tells me its in the working directory and that the working directory I used was put in idk whats wrong with it can anyone help
r/rprogramming • u/Blechturm • Nov 01 '26
The fastest backtester you’ve never heard of is built in plain R
blechturm.comr/rprogramming • u/Antique-Turnip-4180 • Oct 30 '26
J'ai fait un point-and-click de campagne présidentielle 2027 dans un seul fichier HTML (et ça tourne nickel sur mobile)
J'ai sorti un jeu d'aventure point-and-click satirique sur la présidentielle 2027. Le truc pratique, c'est que ça tient dans un seul fichier HTML/JS : zéro installation, ça tourne direct dans le navigateur et l'interface est super bien adaptée/responsive sur mobile.
C'est dans l'esprit des vieux jeux LucasArts (interface à verbes, inventaire, dialogues à choix). En gros : tu gères ta campagne, tes électeurs et les galères médiatiques.
C'est totalement gratuit : https://vigone.github.io/destinationelysee2027/
Curieux d'avoir vos retours si vous testez !




r/rprogramming • u/Not_blabbing_here • Oct 24 '26
I am unable to learn R and just rely on AI. Suggestions please?
Hello,
I have tried to learn R inside Rstudio and even did a course on the basics. I'm now in a role where they are encouraging me to learn R while doing it, but I am unable to do it all because I am unable to understand the sequence of steps and feel AI vibe coding is better option since I don't know if I'm doing things the right way and prompting AI for each step is confusing because I miss out steps which I should have added. Coding with AI is also better since I have deadlines at work. I know this is not the best thing for my own sake, and wish to learn R badly, but nothing seems to be working.
I have struggled with math in a similar way as a kid until I was able to understand the way it works, and now I love math. Sadly I don't have a teacher to teach me r now, but I really and desperately want to learn to code in R, especially in the next couple of days. I'm willing to put in the time to learn, but I need something which helps me make better sense of the language, in a way which is easier to understand and quick too. All suggestions and advice are welcome.
r/rprogramming • u/Different-Engine8778 • Oct 20 '26
Feeling stuck trying to transition from Data Analyst to Statistical Programmer
reddit.comr/rprogramming • u/Gaby_137 • Oct 17 '26
J'ai créé une extension VS Code pour Git parce que j'en avais marre des push --force accidentels.
r/rprogramming • u/Spirited-Sir8426 • Sep 29 '26
Code visualization graph for teaching and code review
Hi everybody,
I am an R enthusiast and a coding professor in my school.
Through the years I have been building a mental model of the structure of a program and how the different components interacts with each other and I wanted to build a tool for that.
The concept is simple: each code entities will be a node in the graph, and will have different kinds of edges that connect them. One can explore the graph by expanding a node through it's potential connections (which other bloc of code it calls, wich part is coupled, the potential types, etc.). One could even enter the block by double-clicking and see it's internal as another graph of private nodes.
This project could help my students understand better some programming principle and could even help programmers for code review.
What do you think?
r/rprogramming • u/Leapord_2005 • Sep 21 '26
Best place to learn R programming
Hi...I am new to R programming....I want to learn about R programming....where to start and how....
r/rprogramming • u/AggravatingNerve4622 • Sep 11 '26
Make your maftools plots interactive with MutGlyph
A colleague of mine recently made an R package called MutGlyph, and I thought it might be worth sharing here.
It’s mainly aimed at bioinformaticians, but given how heavily R is used in genomics, I figured there’s probably a decent overlap with this sub.
The basic idea is to take familiar cancer-genomics plots and make them interactive. You can build things like oncoplots, lollipop plots, rainfall plots, and GISTIC copy-number landscapes, then zoom, pan, hover, and inspect dense regions instead of being stuck with a static figure.
It uses GenomeSpy underneath, but from the R side it behaves like a normal package and works with familiar maftools objects and workflows.
The API is intentionally very close to maftools, so you can swap a static plot for an interactive one with miniscule code change :)
GitHub: https://github.com/genome-spy/MutGlyph/
Docs: https://genomespy.app/MutGlyph/

r/rprogramming • u/Rare_Investigator582 • Sep 10 '26
Use case in the insurance sector
Hello,
Next month I will be start working as a part-time student at a big insurance company in market analysis/research. One of the requirements in the job posting was "basic knowledge in R or a willingness to learn it".
When asked in the interview, I said I am familiar with the interface, used it in a few classes at uni (regression analyses, creating plots). I have never used it for projects or anything and I mostly just followed what was taught.
I am now doing a few beginner courses on DataCamp. What sort of things should I know and does anyone have an idea on how R could be used in this sector?
Thank you :)
r/rprogramming • u/Janakiraman_311 • Sep 03 '26
RDesk - building desktop apps with R backend
reddit.comr/rprogramming • u/callmekyl3 • Aug 27 '26
Early-career marine biologist looking to collaborate on R/data analysis projects
Hi everyone!
I’m an early-career marine biologist currently completing my BSc in Marine Biology, and I’m looking to connect with researchers, students, conservationists, and others working with biological or environmental data.
I’ve been developing my skills in R, particularly for data cleaning, statistical analysis, ecological modelling, and data visualization. I genuinely really enjoy working in R, and at this stage I want to get involved with as many different projects and datasets as I reasonably can.
If anyone has a marine science, ecology, conservation, fisheries, wildlife, or other biological dataset that could use some additional help with analysis in R, I’d be happy to contribute. I’m also open to projects outside of marine science if there is an opportunity to work with interesting data and learn something new.
I’m not looking to charge anyone. My main goal is to gain experience working with different types of real-world data, improve my R skills, contribute where I can, and hopefully meet and build connections with people working in science and research.
I also recently created a GitHub where I’ll be archiving my projects as I continue learning. I uploaded a project I finished about a week ago involving the analysis of BRUV data and whitetip reef shark habitat associations.
GitHub: https://github.com/kylealibz
If you have a project where another person helping with the R or data side would be useful, feel free to message me. I’d also be happy just to connect with other early-career researchers and R users.
Thanks!
r/rprogramming • u/troyandabedtalkshow • Aug 07 '26
HELP! duckdb and callr causing Invalid Error: IO Error on Macos
reddit.comr/rprogramming • u/ericrayanderson • Jul 31 '26
shinyglass is on CRAN. Apple-style Liquid Glass aesthetics for Shiny.
reddit.comr/rprogramming • u/GermsAndNumbers • Jul 29 '26
Is "Mastering Shiny", written in 2021, still valid?
I've had more than one programming book that's hopelessly obsolete due to how fast everything moves. Is Mastering Shiny, published by O'Reilly and written by Hadley Wickham, still a useful resource for learning Shiny five years later?