(no title)
rrjjww | 1 year ago
VS Code/Python has made some major improvements in the past couple years but it’s still very clunky compared to the ease of running R code line by line without having to start up a debug instance. And now with copilot the most frustrating parts of R (such as remembering all the Tidyverse syntax) have been abstracted away.
qudat|1 year ago
There is something to be said about running and processing large CSVs and keeping that in memory while running other parts of the program as well as having clickable access to all the dataframes loaded into memory.
mjhay|1 year ago
The problem with a lot of end-user R code is that it is written by statisticians, not programmers. They'd write the same garbage and huge scripts in Python (trust me, I know).
[0] http://adv-r.had.co.nz/Functional-programming.html
[1] https://adv-r.hadley.nz/metaprogramming.html
[2] https://www.tidyverse.org/
ellisv|1 year ago
That's not really RStudio's fault. It is just how many people use R and were taught.
> code is run out-of-order which makes the code organization and flow of a program a complete disaster.
In my experience, with R Markdown, this is untrue. I see Jupyter Notebooks with cells run out of order much more often.
cjk2|1 year ago
I recently had to inherit someone's R stuff and I had to learn R and fix it all. It now runs from a makefile repeatably.
Anyway it could be worse. It could be Minitab.
bachmeier|1 year ago
That's more a REPL issue than specific to a particular language. It's the tradeoff you make. I write my R programs in Geany and then run the whole thing using Rscript. That gives me a clean environment on every run.
goosedragons|1 year ago
kqr|1 year ago
ubiquitination|1 year ago
bachmeier|1 year ago
silveraxe93|1 year ago
Just open a .py file, then select the snippet of code you want to run and cmd+enter
It will open a new REPL for you (using your selected interpreter) the first time, and after that all commands are run in that same one.
wodenokoto|1 year ago
RobinL|1 year ago
The python interactive window has pretty much fully replaced my use of jupyter, since it gives you notebook-style output without the annoyance of the notebook format. My usual workflow is highlighting lines of code and shift-enter to execute (there's also a cells syntax).
I'm surprised by this because it _is_ possible to use R in Jupyter (although I never really liked the experience, R Studio was far superior).
yabbs|1 year ago
Yes it does.
ivansavz|1 year ago
See my other comment in the main thread with more info.
lylejantzi3rd|1 year ago
Is there a good demo or video you can point to that shows this? I have no experience with R, RStudio, or data science, but you've piqued my interest.
ellisv|1 year ago
https://www.youtube.com/@safe4democracy/featured
jurimasa|1 year ago
Kalanos|1 year ago
dcreater|1 year ago
jakupovic|1 year ago
dcchuck|1 year ago