logoalt Hacker News

parsimo2010today at 8:39 PM4 repliesview on HN

I almost wish Hadley had forked R to make the tidyverse. What I usually see are people that start using tidy functions and coding style, but at some point they realize they don’t know how to do something the tidy way or something hasn’t been implemented in a tidy package yet, so they fall back to base R.

Imho, transitioning from tidy to base R makes your code less readable than just using base R throughout.

If the tidyverse were forked and base R functions weren’t available then people would be forced to come up with a different solution and maybe they would stay committed to being tidy. I realize that probably won’t ever happen, there is too much work to reimplement all the missing base R functions.


Replies

greazytoday at 10:29 PM

Absolutely not.

Theres more to the R ecosystem than tidyverse packages. There's a whole suite of absolutely amazing R packages in the bioconductor ecosystem that rival tidyverse in speed and ease of use but targeting other data structures.

Some of the tidyverse packages are over kill and contain lots of foot guns.

I've seen code that was clean get butchered because someone had no idea how to do something basic in base R.

There's also another separate ecosystem for doing stats with their own flavors.

t_manntoday at 10:36 PM

There's a school of thought of using mostly base R, for all its flaws it already had before Hadley, and selectively using some tidyverse packages. Base R has been the de-facto coding standard for academic statisticians for decades, with all the wealth of open source packages that that entails, and some of the tidyverse packages are just a godsend. ggplot2 is probably the most powerful plotting library I've seen, while being fairly accessible. You don't have to subscribe to an entire philosophy for data wrangling or plotting (and may even frown at the syntax overloading) to get a huge amount of utility out of it.

jghntoday at 10:13 PM

> I almost wish Hadley had forked R to make the tidyverse

I am pretty sure there are R-core members who also wish this is what happened.

show 1 reply
Fomitetoday at 9:15 PM

This. They're basically two languages sitting on top of each other. It's fascinating seeing students who have been taught using the tidyverse try to switch gears.