News for hackers. Stuff that matters.
Re:One Year with R by delusional on Tuesday March 22, 2022 @10:31AM (#30766524)
> R is a highly optimized, well-oiled machine if you're using it for its highly-optimized, well-oiled purposes.

This hits home for me. We are just starting to use R for risk modeling where I work. R, more than any language I've ever used, makes me appreciate "worse is better". From a theoretical "aesthetic" perspective R is a mess. Yet for data processing all those theoretical concerns don't matter. It just works.

It's honestly kind of humbling that something so theoretically messy can be so practically coherent. It makes me question my assumptions about simplicity.

Re:One Year with R by canjobear on Tuesday March 22, 2022 @10:54AM (#30766822)
R "just works" now because a huge amount of effort has gone into improving the language over the last 10 or so years, in part spurred by the tidyverse movement, although not restricted in scope to tidyverse. When I was starting grad school around 2010, if someone sent you some R code, the chances that you would be able to "just run" it were basically zero: there would be weird version mismatches in how functions worked, file paths would be specified in inconsistent ways in different parts of the script, all kinds of crazy impenetrable errors were the norm. Now there are several R code snippets posted in these HN comments that will run without trouble. If I could have gone back in time and told myself that this is how R would develop, I would have been shocked (and happy).
Re:One Year with R by wenc on Tuesday March 22, 2022 @11:44AM (#30767478)
Part of it has to do with strict testing in CRAN as well. Packages have to pass tests and confirmed to compile. This adds reliability to package management across platforms.

That said I still run into trouble with package deprecations. I was trying to install the optmatch package (deprecated but still used by causal inference packages) and had a really tough time getting it to compile on macOS.

Re:One Year with R by disgruntledphd2 on Tuesday March 22, 2022 @02:42PM (#30769820)
I dunno man, python has always seemed a little bit worse on this stuff to me. At least with R if you had a consistent version, everything off CRAN worked together.

I think R 3.0 introduced namespaces which fixed a lot of the really crazy stuff.

Also, I was writing Sweave in 2010 for my thesis, and I definitely wasn't alone.

Re:One Year with R by jghn on Tuesday March 22, 2022 @07:16PM (#30772850)
Namespaces showed up around 2004, so somewhere around 2.0.0. I don't think they were mandatory until much later.
Re:One Year with R by jghn on Tuesday March 22, 2022 @12:53PM (#30768488)
I suspect that has as much to do with the maturation of the data science community as it does the language environment. There have been pockets of R users who put much effort into reproducibility before the era you cite, such as Bioconductor.

When I think back to the era you're describing what I recall was people winging around hacky scripts being the norm regardless of their environment. While still not something I'd think of as software engineering best practices, what I see now is less Wild West.

Re:One Year with R by bachmeier on Tuesday March 22, 2022 @10:40AM (#30766639)
I hadn't thought about R as a "worse is better" language, but that's a good way to think about it. Makes sense, too, since it came from the place that inspired worse is better.
Re:One Year with R by dash2 on Tuesday March 22, 2022 @02:58PM (#30770026)
R comes from New Zealand, no?
Re:One Year with R by bachmeier on Tuesday March 22, 2022 @03:22PM (#30770302)
R is an implementation of S. John Chambers worked on it at Bell Labs starting in 1975.

https://en.wikipedia.org/wiki/S_%28programming_language%29

Re:One Year with R by edgyquant on Tuesday March 22, 2022 @08:07PM (#30773256)
I’m trying to figure out if you were actually asking a question or if it was rhetorical and you were calling shots.
Re:One Year with R by edgyquant on Tuesday March 22, 2022 @08:06PM (#30773246)
Is there any reason you chose R over Python? Is it just because that’s the go to language?
Re:One Year with R by delusional on Friday March 25, 2022 @03:35PM (#30806245)
We asked the people are going to be using it what they'd prefer. Many of them are recent graduates, and they told us they mostly used R during their university courses. It's just a pure familiarity play. The alternative was building a huge system on a mainframe (we're a legacy bank).

Really there wasn't a lot of thought put into the language. We figure that if it ends up being a total failure, we can just pivot.

Re:One Year with R by deehouie on Tuesday March 22, 2022 @10:43AM (#30766676)
Bravo! This is exactly right.