The correct answer to any question is always “it depends”, e.g., “Should I use tidyverse or base R?” I just saw Karl Broman described himself as a somewhat desiccated baseR-er. I have to admit that most of time I use base R, too. Why? I rarely do data analysis. My primary job is programming, and frankly, I consider my programming skills to be mediocre.1 I’m not good at learning new things. Unfortunately, I learned R the “wrong” way, and became a master of par() like Karl more than a decade ago when ggplot2 was not born yet.
If I were to learn R again to do data analysis, I’d very much like to follow David Robinson’s suggestions. For now, I’d say I’m completely comfortable with the old-fashioned if, for, [[, $, and lapply() for my programming needs, especially when developing R packages. Perhaps it is only me, but I find the pipe operator %>% obfuscatory when used for programming and also a hassle to debug. The first time I saw it being used in a package was in leaflet two years ago, and I stared at the chain for quite a while trying to parse it in my brain.2 For the pipe in *nix commands, I absolutely love it. For %>% in R, I guess I won’t use it until someday when I mostly work on data analysis.
This post is not meant to defend base R. Life is short, and base R is big. There are certainly good and bad things about base R. My one and only complaint about base R is partial matching (especially for list elements). Other than that, I’m totally fine with it, even with all its known drawbacks. Again, I’m a programmer. Also remember the sample size is one (perhaps two, counting Karl), so please do not draw any conclusions from this short post. That said, if you are a beginner in R and I must offer a suggestion, I’d suggest tidyverse anyway (with a reservation on %>% unless your job is data analysis), because it is not worth the time learning all the inconsistencies in base R.
-
I’m good at standing on the shoulders of giants and connecting different pieces of software packages, but I can rarely create a giant by myself. I’m bad at almost everything about computer science: I don’t know C, C++, Python, Java, or whatever popular languages. I mainly program in R, and occasionally in JavaScript. I don’t know much about classic algorithms (perhaps except bubble sort). ↩︎
-
This is not a representative example of pipes, though, since each function returns a function, and I had a hard time figuring out what
safePaletteFunc(pal)(x)would do and the order in which these functions would be applied tox. ↩︎
Donate
As a freelancer (currently working as a contractor) and a dad of three kids, I truly appreciate your donation to support my writing and open-source software development! Your contribution helps me cope with financial uncertainty better, so I can spend more time on producing high-quality content and software. You can make a donation through methods below.
-
Venmo:
@yihui_xie, or Zelle:xie@yihui.name -
Paypal
-
If you have a Paypal account, you can follow the link https://paypal.me/YihuiXie or find me on Paypal via my email
xie@yihui.name. Please choose the payment type as “Family and Friends” (instead of “Goods and Services”) to avoid extra fees. -
If you don’t have Paypal, you may donate through this link via your debit or credit card. Paypal will charge a fee on my side.
-
-
Other ways:
WeChat Pay (微信支付:谢益辉) Alipay (支付宝:谢益辉) 

When sending money, please be sure to add a note “gift” or “donation” if possible, so it won’t be treated as my taxable income but a genuine gift. Needless to say, donation is completely voluntary and I appreciate any amount you can give.
Please feel free to email me if you prefer a different way to give. Thank you very much!
I’ll give back a significant portion of the donations to the open-source community and charities. For the record, I received about $30,000 in total (before tax) in 2024-25, and gave back about $15,000 (after tax).