I’m eager to know,
- how many package names on CRAN have two, three, N characters?
- which combinations have not yet been used (“unpoppler”)
- how many package names use full-caps, or camelCase?
- how many package names end in 2?
I think it might reveal some interesting facts.
Edit: bonus points for animated graphics showing the time-evolution of CRAN packages.
A better way than scraping a web page to get the names of packages is to use the
available.packages()function and process those results.available.packages()returns a matrix contains details of all packages available (but is filtered by default — see the Details section of?available.packagesfor more).Using
nameCountwe can select packages with names containing any number of characters without needing to resort to regexp etc: