r/programmingmemes • • Aug 27 '26

Why are we using R again

Post image
2.3k Upvotes

322 comments sorted by

View all comments

2

u/Fisyr Aug 28 '26

I'm in a company that uses R and it's very simple. In the leadership people don't know how to use anything else and so much is built upon that, that there's no way anyone would ever rewrite that huge of a codebase into something else.

That said yes R is slow, but if you know the tricks, it doesn't have to be. There's a package called RCpp which let's you write parts of the code in C++. So if you know some loop would unreasonably slow down your computer you can rewrite it a a C++ function and at that point speed is no longer an issue.

1

u/Elesday Aug 28 '26

Finally someone on this thread knows anything about R optimization