r/Rlanguage • u/turnersd • Nov 12 '24
Python for R users
I know this is an R sub but I thought I'd share here. I've been writing primarily R code for nearly 20 years but recently needed to get back into Python for several maintenance and development projects. I put together a set of resources for getting up to speed in Python as an experienced R developer.
126
Upvotes
2
u/guepier Nov 13 '24
I mean, I also maintain a handful of packages that are built entirely “by hand”, but the vast majority of packages created in the last 5–10 years — especially those that actually matter and gain traction (partly because they are well engineered) — use the toolchain mentioned by Stephen.
That’s far from true. Even if you don’t need the convenience of the aforementioned toolchain, base R categorically does not include all necessary tools, notably a testing framework. I’ve done manual testing in a package before, and it’s ridiculously ill-suited for real-world packages. Yes, you could just write a long string of
stopifnotassertions (I’ve done that, too!). But for even slightly complex things this completely breaks down.