Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's sad to see the downfall of R. I still use R a lot interactively, but Python takes at least 50% of the share.

R had a good run, and IMO they still have some packages that are just too good to see it languishing into the future, notably the package data.table. I have not come across a better library for data manipulation, in R or Python. The syntax is excellent and it is faster than most alternatives, especially the popular ones.

I think an important factor that contributed to R's downfall is the decreasing hype around data science, as well as the fact that the core base of R users do not have a background in the STEM fields, but rather the humanities and social sciences. I do believe that the R community of developers are dedicated and perhaps, in relative terms, are more involved with their projects than a typical Python developer. But that's not enough, the sheer numbers of Python developers eclipses R's and that is too hard to overcome.



I am seeing a downfall in industry, where R has a researchy image, when stuff gets serious, R scripts are rewritten into Python packages.

But in the academic world (I'm in bioinformatics)... There seems to be nothing but R, in my experience. I don't really like that, because we have Snakemake and a lot of ML stuff, all Python, and the R people have a barrier to get started. I myself associate R with "just scripts and notebooks". Never do the R people seem to make anything into a well maintainable module. They make the notebook, use the build-in R functions and then their work is done. It seems to be different in the Python world where I see people writing modules that are "re-useable assets", and then those are used in notebooks for data science. This is probably my industry bias and perhaps Python-using academics also never make packages.

I guess also that there is no such a thing as poetry in R? I'm not entirely sure...


> I am seeing a downfall in industry

Exactly, it is an industry-driven change IMO. In fact, R has gained a lot of popularity in academia, especially in the Social Sciences --though perhaps Python has gained even more.

But in industry, R's falling hard. I also think that the growing popularity of cloud analytics platform solutions such as Azure Synapse (now Fabric) is a significant factor. Though SparkR is a decent R-native API to Spark, Python has so much support in those cloud analytics ecosystems, it's hard to keep doing things in R.


> and perhaps Python-using academics also never make packages.

Your guess is (largely) correct. For most users, the workflow is exactly as you described:

> They make the notebook, use the build-in R functions and then their work is done.


You know you can use snakemake to run r scripts too.


The poetry equivalent would be renv.

R is a highly functional language modeled after Scheme. In many ways it's more powerful than python, especially due to its metaprogramming capabilities. It's possible to write maintainable, readable, high-quality code in R (just look at the Tidyverse[0] libraries). The issue is that the user base is mostly scientists and statisticians, and they just don't.

The bioinformatics space seems especially dire with dumpster fires like Bioconductor.

[0] https://www.tidyverse.org/


This is so wrong and all FUD. At my company R users write modular packages and deploy them to internal CRANs while python users write scripts and email them because it is way easier to write modular code in R because R favors easy on ramps for new users while embracing good ideas like immutable semantics and functional programming. Further, R has targets which is way more general than snakemake. Even from a reproducibility perspective, R wins hands down. Getting an R package into Guix is trivial compared to a python package. This means that in 10 years, more R code will still run than python. It really saddens me to see the level of dishonest crap which goes unchallenged to make an inferior prototyping language kill the only lispy language with good numerical libraries.


To be fair, I was sharing my perspective, thanks for sharing yours. I guess we both offered some anecdata here.


I always thought the core user were statisticians and the hype around data science and ML called for a new way of looking at statistics (accuracy of predictions over interpretation of models) and with this a new language of choice.

“R is for statistics, but if you want to do machine learning you have to use Python”

Which is ironic given that pythons success as a data science tool is built on the back of a matlab clones.


Perhaps in the past, not that statisticians left, but I am referring to "users", not developers.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: