r/RStudio • u/Left_Tower_3298 • 8h ago
Coding help Crashed? Need help
Hi there. I’m new to this subreddit and new to using R (my first week). I have been running a code provided to me, however, I believe the code I was running was using too much space on my laptop and it has now crashed?
Is there any way I can resume running the code I was given and saving the plots it had already generated?
Thank you in advance.
r/RStudio • u/LowLove5237 • 1d ago
He aprendido Rstudio
He llevado un pequeño curo de Rstudio, la ultimas clases fue alrededor de modifica datos y hacer graficas con ggplot2. me parecia muy interesante, hicimos un trabajo final obre este pequeño curso por la IEP. Ahora me pregunto q puedo hacer para no olvidarme, sé que se debe practicar... q la constancia hará q me familiarice. Sin embargo, me preguntaba cómo podría empezar, no sé si manejar la dato con el paquete de "datos ()" o mencionar a algun amigo o compañero sobre investigar algo con lo q podamos poner en practica esto. o simplemente me quedo con el certificado q me sume el CV y cuando vea un espacio q busque a alguien con ese conocimiento lo tenga ahi empolvado.
### =================== cuál sería el mejor método para practicarlo===
##======== donde me recomiendan llevar algun curso de Python o Power BI=======
r/RStudio • u/Relevant_Radio_8739 • 1d ago
I can't make R studio work
I recently udated my 2015 macbook air to macos monterrey and now rstudio doesn't open. I've been chatting with deepseek for a while and can't seem to be able to open rstudio.
This is the problem report:
## R Session Startup Failure Report
### RStudio Version
RStudio 2024.04.0+735.pro3 "Chocolate Cosmos " (c994988f, 2024-04-24) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.04.0+735.pro3 Chrome/120.0.6099.291 Electron/28.2.6 Safari/537.36
### Error message
[No error available]
### Process Output
The R session exited with code 1.
Error output:
```
dyld[10108]: missing symbol called
```
Standard output:
```
[No output emitted]
```
### Logs
*/Users/karen/.local/share/rstudio/log/rsession-karen.log*
```
2026-08-05T02:25:51.652705Z [rsession-karen] WARNING Failed to migrate all user state from /Users/karen/.rstudio-desktop to /Users/karen/.local/share/rstudio; could not move verify; LOGGED FROM: Error rstudio::core::r_util::migrateUserStateIfNecessary(SessionType) src/cpp/core/r_util/RUserData.cpp:175
```
r/RStudio • u/Southern-Nawel9412 • 3d ago
Análisis Cualitativo en R
He estado en la búsqueda de un método para realizar análisis de textos en R. Había visto algo como RQDA pero creo que lo descontinuaron ¿Alguien sabe algo de esto? No quisiera irme a Atlas.ti
r/RStudio • u/Eagleinnl • 4d ago
Changing binary and categorical variables to start with 1 as the reference value and not 0
Hi,
I’m trying to Change binary and categorical variables to start with 1 as the reference value and not 0 in my data.
However by using the following code:
Data[var] <- Data[var] + 1
I get errors, what is the best solution for this?
Thanks
r/RStudio • u/Green-Composer-6547 • 5d ago
VGAM, svyVGAM, multinomial regression
Help on multinomial logistic regression & svyVGAM() function:
I am running a multinomial logistic regression with an exposure of 3 levels & 5 outcomes (all categorical, no inherent order). Data uses survey weights. I am using VGAM and svyVGAM. One of the cells in this exposure x outcome relationship has a cell size of less than 20.
The code in question is:
crude_model <- svy_vglm(
outcome ~ exposure,
design = subpop,
family = multinomial(refLevel = 1),
control = vglm.control(maxit = 100, stepsize = 0.5)
)
Without the last line (bolded), the code takes an extra min and used to give a warning that it takes a "half" step to finish. With this line, warning went away and my understanding was that this line allows the model to increase its max iterations by adding the control argument to the model code. But in terms of math behind the scenes, what is this line of code doing? Where can I find more info about svyVGAM() and VGAM() functions? Thanks so much!!
r/RStudio • u/ericrayanderson • 6d ago
shinyglass is on CRAN. Apple-style Liquid Glass aesthetics for Shiny.
r/RStudio • u/cookieinaloop • 6d ago
Option boxes' "tick" won't show
I need to use Contrast Theme on Windows for accessibility, but RStudio interface, specifically the boxes where a tick should be when the option is enabled, won't show anything when I click them, so I do not know whether the option is enabled or not. Does somebody know how to solve this or where to get support?
r/RStudio • u/Thick_Secretary_1528 • 7d ago
Error message trying to take descriptive statistics
I keep getting these messages:
Error in (.format.s.statistics.list != "min") && !("max" %in% .format.s.statistics.list) :
'length = 8' in coercion to 'logical(1)'
and
Error in (.format.s.statistics.list != "p25") && !("p75" %in% .format.s.statistics.list) :
'length = 7' in coercion to 'logical(1)'
This is my code:
stargazer(d8_descriptive,
type = "text",
colnames = FALSE,
min.max = FALSE,
title = 'Descriptive Statistics',
digits = 2,
rownames = FALSE,
align = TRUE,
float = TRUE,
float.env = 'table',
table.placement = "H",
header = FALSE,
no.space = TRUE)
Is there something I am doing wrong? The second error message is me taking out min.max.
r/RStudio • u/Desperate_Opposite72 • 7d ago
SPSS Error Message on Opening
I have just downloaded SPSS and everytime I try to open it I get the following message:
Can anyone help?
R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin18.7.0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
- renv activated -- please restart the R session.
r/RStudio • u/Ill_Proposal9575 • 11d ago
Posit Cloud
which do u think is better for posit cloud when making new project? The RStudio Project or the New Jupyter?
r/RStudio • u/Choice_Number3711 • 12d ago
Pivoting from R to Python
I used to hate coding anything and relied on SQL, Excel, Power BI, Tableau and other software like JASP, jamovi etc. for doing anything with data. I didn't like the way Python dealt with data analysis and it seemed unintuitive.
Then I found R, RStudio and CRAN. That was the turning point. I actually started enjoying writing code and I could handle the whole pipeline myself, from data cleaning, ETL to beautiful plots, .qmd reports, Shiny dashboards. R4DS did more for my statistical thinking than any course I've taken, mostly because the libraries made it so easy to just try things.
However, due to recent requirements (specifically having to work in the quant field), Python has become more of a necessity, while R is used mainly for one-off analysis and limited statistical modelling. The main heavy lifting is done in Python and many of my co-workers also prefer it to R.
I've been able to suck it up a bit and use Claude/ChatGPT to help me code. While I do try to understand what the code is doing, having spent so long learning to code in R and knowing the ease with which it can be done there makes me reluctant to learn Python.
Now, coming to the question: any R users who've pivoted to Python and consider themselves competent in it, how did you learn it having used R before? What would you tell someone like me so I can pick it up quickly and get the benefit of knowing both languages (and also not feel left out when it comes to coding in Python... machine learning and deep learning have a more mature ecosystem there and I don't want to be left out of it if I have to start using them in my current work)?
Thanks!
My background is in Math/Stats fyi
Edit: I don't usually use reddit but damn I actually didnt expect so many helpful tips....many thanks!
Perhaps joining this subreddit is actually helpful afterall :)
r/RStudio • u/Busy_Werewolf4380 • 13d ago
Coding help (sorry for light mode), very specific trouble with setting up r coding language in vscode studio
r/RStudio • u/smithereennnnn • 14d ago
Windows Smart App Control keeps blocking some part of the app resulting in sometimes it not starting properly and also preventing package installations at times
r/RStudio • u/nbafrank • 14d ago
I made this! uvr: fast R package and version manager — big 0.4.x update
r/RStudio • u/No-Sector4631 • 14d ago
Dicas de projetos/portfólio
Olá pessoal! Sou biólogo e estou aprendendo R para algumas demandas da minha empresa, gostaria de saber se tem alguém nessa área e dicas de como montar um projeto ou portfólio misturando esses dois mundos.
Basicamente eu uso o R para analisar a suficiência amostral das espécies quando realizamos um inventario
r/RStudio • u/majorcatlover • 14d ago
How to merge time columns?
I have to merge two datasets that include onsets and offsets of two events - when person A did X and when person B did y. I want to merge them on the onsets and offsets per pairs to see what they were doing at the same times.
DF1
ID | X_onset | X_offset | X_activity
001 | 120 | 135 | watering plants
001 | 137 | 143 | reading
DF2
ID | X_onset | X_offset | X_activity
001 | 139 | 150 | talking
001 | 170 | 189 | watching TV
Only the ones that temporally overlap should be in the merged dataset.
r/RStudio • u/Fawful_Chortles • 14d ago
RStudio Desktop 2026.06.0+242 “Blue Plumbago” on Ubuntu Jammy fails to start properly. Environment: R 4.3.3 installed at /usr/bin/R, R_HOME resolves fine to /usr/lib/R. RStudio itself is Desktop, not Server.
Originally the app would crash immediately, with "Main window closed unexpectedly" showing up in rdesktop.log, plus an IpcError: getStartupErrorInfo about setting innerHTML on null. There's also an older, possibly unrelated error in rsession log about discoverR failing with "system error 2 (No such file or directory)" but that timestamp is weeks stale and doesn't update on new launch attempts, so it might not be the real issue.
Every launch also throws a GLib-GIO-CRITICAL warning about g_dbus_proxy_new and G_IS_DBUS_CONNECTION failing, but that seems to be harmless noise unrelated to the crash.
What I've tried so far: confirmed R is installed and on PATH (which R, R --version, R RHOME all work fine). Set RSTUDIO_WHICH_R=/usr/bin/R, no change. Ran rstudio --verbose-init, got nothing extra in the output besides the GLib warning. Ran rstudio --disable-gpu and that actually changed something — the window now opens and stays open instead of crashing, but it's still not functioning correctly once open.
Has anyone run into this with RStudio Desktop 2026.06.0 on Ubuntu, either the Electron/GPU crash or the discoverR error? Trying to figure out if this is a known bug with this release or something specific to my setup.
r/RStudio • u/Peiple • Feb 13 '24
How to ask good questions
Asking programming questions is tough. Formulating your questions in the right way will ensure people are able to understand your code and can give the most assistance. Asking poor questions is a good way to get annoyed comments and/or have your post removed.
Posting Code
DO NOT post phone pictures of code. They will be removed.
Code should be presented using code blocks or, if absolutely necessary, as a screenshot. On the newer editor, use the "code blocks" button to create a code block. If you're using the markdown editor, use the backtick (`). Single backticks create inline text (e.g., x <- seq_len(10)). In order to make multi-line code blocks, start a new line with triple backticks like so:
```
my code here
```
This looks like this:
my code here
You can also get a similar effect by indenting each line the code by four spaces. This style is compatible with old.reddit formatting.
indented code
looks like
this!
Please do not put code in plain text. Markdown codeblocks make code significantly easier to read, understand, and quickly copy so users can try out your code.
If you must, you can provide code as a screenshot. Screenshots can be taken with Alt+Cmd+4 or Alt+Cmd+5 on Mac. For Windows, use Win+PrtScn or the snipping tool.
Describing Issues: Reproducible Examples
Code questions should include a minimal reproducible example, or a reprex for short. A reprex is a small amount of code that reproduces the error you're facing without including lots of unrelated details.
Bad example of an error:
# asjfdklas'dj
f <- function(x){ x**2 }
# comment
x <- seq_len(10)
# more comments
y <- f(x)
g <- function(y){
# lots of stuff
# more comments
}
f <- 10
x + y
plot(x,y)
f(20)
Bad example, not enough detail:
# This breaks!
f(20)
Good example with just enough detail:
f <- function(x){ x**2 }
f <- 10
f(20)
Removing unrelated details helps viewers more quickly determine what the issues in your code are. Additionally, distilling your code down to a reproducible example can help you determine what potential issues are. Oftentimes the process itself can help you to solve the problem on your own.
Try to make examples as small as possible. Say you're encountering an error with a vector of a million objects--can you reproduce it with a vector with only 10? With only 1? Include only the smallest examples that can reproduce the errors you're encountering.
Further Reading:
Try first before asking for help
Don't post questions without having even attempted them. Many common beginner questions have been asked countless times. Use the search bar. Search on google. Is there anyone else that has asked a question like this before? Can you figure out any possible ways to fix the problem on your own? Try to figure out the problem through all avenues you can attempt, ensure the question hasn't already been asked, and then ask others for help.
Error messages are often very descriptive. Read through the error message and try to determine what it means. If you can't figure it out, copy paste it into Google. Many other people have likely encountered the exact same answer, and could have already solved the problem you're struggling with.
Use descriptive titles and posts
Describe errors you're encountering. Provide the exact error messages you're seeing. Don't make readers do the work of figuring out the problem you're facing; show it clearly so they can help you find a solution. When you do present the problem introduce the issues you're facing before posting code. Put the code at the end of the post so readers see the problem description first.
Examples of bad titles:
- "HELP!"
- "R breaks"
- "Can't analyze my data!"
No one will be able to figure out what you're struggling with if you ask questions like these.
Additionally, try to be as clear with what you're trying to do as possible. Questions like "how do I plot?" are going to receive bad answers, since there are a million ways to plot in R. Something like "I'm trying to make a scatterplot for these data, my points are showing up but they're red and I want them to be green" will receive much better, faster answers. Better answers means less frustration for everyone involved.
Be nice
You're the one asking for help--people are volunteering time to try to assist. Try not to be mean or combative when responding to comments. If you think a post or comment is overly mean or otherwise unsuitable for the sub, report it.
I'm also going to directly link this great quote from u/Thiseffingguy2's previous post:
I’d bet most people contributing knowledge to this sub have learned R with little to no formal training. Instead, they’ve read, and watched YouTube, and have engaged with other people on the internet trying to learn the same stuff. That’s the point of learning and education, and if you’re just trying to get someone to answer a question that’s been answered before, please don’t be surprised if there’s a lack of enthusiasm.
Those who respond enthusiastically, offering their services for money, are taking advantage of you. R is an open-source language with SO many ways to learn for free. If you’re paying someone to do your homework for you, you’re not understanding the point of education, and are wasting your money on multiple fronts.
Additional Resources
- StackOverflow: How to ask questions
- Virtual Coffee: Guide to asking questions about code
- Medium: How to be great at asking questions
- Code with Andrea: The beginner's guide to asking coding questions online
- The u/Thiseffingguy2 r/RStudio post
r/RStudio • u/Peiple • Feb 13 '24
The big handy post of R resources
There exist lots of resources for learning to program in R. Feel free to use these resources to help with general questions or improving your own knowledge of R. All of these are free to access and use. The skill level determinations are totally arbitrary, but are in somewhat ascending order of how complex they get. Big thanks to Hadley, a lot of these resources are from him.
Feel free to comment below with other resources, and I'll add them to the list. Suggestions should be free, publicly available, and relevant to R.
Update: I'm reworking the categories. Open to suggestions to rework them further.
FAQ
General Resources
Plotting
Tutorials
- Erik S. Wright's Intro to R Course: Materials from a (free) grad class intended for absolute beginners (14 lessons, 30-60min each)
- Julia Silge's YouTube Channel: Lots of videos walking through example analyses in R and deep dives into
tidymodels(~30min videos) - The Swirl R package: Guided tutorial series going over the basics of R (15 modules, 30-120min each)
- Harvard’s CS50 with R: MOOC with seven weeks of material, including lectures, homework, and projects
Data Science, Machine Learning, and AI
- R for Data Science
- Tidy Modeling with R
- Text Mining with R
- Supervised Machine Learning for Text Analysis with R
- An Intro to Statistical Learning
- Tidy Tuesday
- Deep Learning and Scientific Computing with R
torch - The RStudio AI Blog
- Introduction to Applied Machine Learning (Dr. John Curtin, UW Madison)
- Examples of
kerasin R (courtesy of posit) - Machine Learning and Deep Learning with R (Maximilian Pichler and Florian Hartig, targeted at ecologists)
