Site icon R-bloggers

What are the Popular R Packages?

[This article was first published on R – Win-Vector Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

“R is its packages”, so to know R we should know its popular packages (CRAN).

Or put it another way: as R is a typical “the reference implementation is the specification” programming environment there is no true “de jure” R, only a de facto R.

To look at popular R packages I defined “popular” as used (Depends/Imports/LinkingTo) by other packages on CRAN. One could use other definitions (e.g. Github stars), but this is the one I used for this particular study.

My “quick look” (sure to anger everyone) is a couple of diagrams such as the following.

In the above diagram each node is an R package. We are restricting our selves to popular extension packages: those that have at least 1,000 indirect uses in CRAN (via Depends/Imports/LinkingTo; excluding base packages such as stats and utils).

Each node is annotated with:

For example: data.table is directly used by 553 packages (3.9% of CRAN) and indirectly used by 1418 packages (10% of CRAN).

The arrows point from packages to packages that use them: use “points in.”

The nodes are color coded as follows:

The thing to notice is: indirect usage count moves back across arrows. The 1004 usages recorded in openssl must be in the 1014 of askpass, which in turn are in the 1021 of sys.

Now that we have how to read the diagram lets expand from our sample of six popular packages to all popular packages (under our arbitrary 1000 uses==popular definition).


(large version; svg vector version)
(Note the graph is acyclic, any appearance of cycles (such as between pillar and tibble) is due to unfortunate plotting superimposition (pillar Imports rlang, not tibble).)

Some things to notice from the above diagram (counts can be confirmed here).

To leave a comment for the author, please follow the link and comment on their blog: R – Win-Vector Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.