News for hackers. Stuff that matters.
Re:RStudio is now Posit, our mission continues by Lyngbakr on Friday November 04, 2022 @05:19PM (#33473923)
I've also seen my fair share of garbage R code and I think Gordon Shotwell's comment that "There really are no production languages – only production engineers" speaks to this.[0] A big problem in the scientific community is that scientists aren't trained to write code like production engineers. I don't see it necessarily as being an issue that is endemic to R, though.

Packrat[1] — an RStudio package — can be used to easily avoid the library versioning issues you describe. The problem isn't that the tooling isn't there or that it isn't easy to use. It's that some folks simply don't use it and are perhaps oblivious as to /why/ they should even use it, anyway.

[0] https://shotwell.ca/posts/2019-12-30-why-i-use-r/ [1] https://rstudio.github.io/packrat/

Re:RStudio is now Posit, our mission continues by tetris11 on Friday November 04, 2022 @05:39PM (#33474185)
Also R really didn't play well with conda for a while. It seems to be ironed out in recent years, but I remember the issues of previous years where trying to set up a reproducible R environment in conda was an unreliable endeavour.
Re:RStudio is now Posit, our mission continues by Gimpei on Friday November 04, 2022 @06:08PM (#33474566)
Maybe, but I wonder if it is especially easy to produce horrific code in R. For example, I remember trying to refactor an R codebase that made ample use `load`, leading to all these mysterious variables appearing from nowhere.
Re:RStudio is now Posit, our mission continues by dash2 on Friday November 04, 2022 @06:40PM (#33474975)
packrat is a little old. You want renv, which is the iteration of the same idea and I've found works very simply and nicely.