Re:Generate Musical Accompaniment with R
by adeelk93 on Monday November 29, 2021 @12:24AM
(#29376708)
R is my go-to for ad-hoc data science as well. And you’re right, deprecations are generally replaced with something nicer. From the perspective of a language used for ad-hoc analysis, these are all great features. Hadn’t thought of it that way.
Which further emphasizes the idea of: R might not be the right tool for production processes. I used to fight that concept, but in the past year or so I’ve come to embrace it.
Re:Generate Musical Accompaniment with R
by 555watch on Tuesday November 30, 2021 @04:15AM
(#29390364)
It's not that difficult to fix package versions for any prod deployment, as long as you deploy the projects as R packages. You can fix the versions in the ``DESCRIPTION`` files, which are easy to manage through, e.g., Docker and ``devtools::install_version``. Essentially, not a huge difference from ``requirements.txt`` that we're used to.
Re:Generate Musical Accompaniment with R
by adeelk93 on Tuesday November 30, 2021 @09:05PM
(#29399834)
DESCRIPTION files don't actually solve this problem - if you're trying to peg a package version, and it inevitably ends up an outdated version in the future, you'll be greeted with that error "Package 'xxx' is not available". Why? That version has been archived. I'm sure you've run into this error at some point.
devtools I guess is a solution (write some code to iterate over package requirements), but let me ask you this - how do you protect against breaking changes in devtools?
I have yet to encounter something more reliable than MRAN snapshots https://mran.microsoft.com/documents/rro/reproducibility
By contrast, R has the occasional but rare installation issue, and almost all the common ones are solvable in a few minutes with a re-install.
I think for large software projects where dependencies could be an issue, especially long term, R might not be the best choice.. for now anyway.
I feel some of your pain on the tidyverse front, but for that reason I stick mostly with fairly common functions and avoid exotic new ones. Even if I do venture into new ones, I comment them so I know precisely what's going on so in the event of a refactor a few years' down the track I'll be fairly safe. With R there's usually 10 ways to do the same thing, so you're never completely stuck, you'll just get an error which typically has some sensible way to handle.
To spin a positive light on the deprecations, most are replaced with something nicer, so although you have the pain of updating old code, it forces you to be aware of the new approach, which is a silver lining of sorts.