Monthly Archives: January 2017

R package dependencies


CRAN at the moment (2017-01-13 01:09:18) has 9884 R packages.

Quite a few of these packages are required by other packages (by Depends, Imports, or LinkingTo)

Required byPackages
07549
1-91805
10-99393
100-999111
1000-199918
2000+8

So there are 8 packages required by 2000 or more other packages.

The 30 packages which are required by the highest numbers of other packages are:

These top 30 packages were written by the following authors:

pkgRequired byAuthors
Rcpp3451Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou, Nathan Russell, Douglas Bates and John Chambers
lattice3411Deepayan Sarkar
MASS2873Brian Ripley, Bill Venables, Douglas M. Bates, Kurt Hornik (partial port ca 1998), Albrecht Gebhardt (partial port ca 1998), David Firth
Matrix2378Douglas Bates and Martin Maechler
magrittr2239Stefan Milton Bache and Hadley Wickham
stringi2061Marek Gagolewski (stringi source code); IBM and other contributors (ICU4C 55.1 source code); Unicode, Inc. (Unicode Character Database)
digest2023Dirk Eddelbuettel with contributions by Antoine Lucas, Jarek Tuszynski, Henrik Bengtsson, Simon Urbanek, Mario Frasca, Bryan Lewis, Murray Stokely, Hannes Muehleisen, Duncan Murdoch, Jim Hester, Wush Wu, Qiang Kou, Thierry Onkelinx, Michel Lang and Viliam Simko.
stringr2007Hadley Wickham, RStudio
plyr1809Hadley Wickham
assertthat1744‘Hadley Wickham’
lazyeval1713Hadley Wickham, RStudio
tibble1701Hadley Wickham, Romain Francois, Kirill Müller, RStudio
RColorBrewer1570Erich Neuwirth
colorspace1550Ross Ihaka, Paul Murrell, Kurt Hornik, Jason C. Fisher, Reto Stauffer, Achim Zeileis
reshape21489Hadley Wickham
dichromat1446Thomas Lumley, Scott Waichler
labeling1445Justin Talbot
munsell1444Charlotte Wickham
scales1443Hadley Wickham, RStudio
gtable1421Hadley Wickham
ggplot21407Hadley Wickham, Winston Chang, RStudio
R61236Winston Chang
mime1172Jeffrey Horner, Yihui Xie
nlme1066José Pinheiro (S version), Douglas Bates (up to 2007), Saikat DebRoy (up to 2002), Deepayan Sarkar (up to 2005), EISPACK authors (src/rs.f), Siem Heisterkamp (Author fixed sigma), Bert Van Willigen (Programmer fixed sigma), R-core
jsonlite1017Jeroen Ooms, Duncan Temple Lang, Lloyd Hilaiel
codetools1002Luke Tierney
survival905Terry M Therneau, Thomas Lumley (original S->R port and maintainer until 2009)
cluster895Martin Maechler, Peter Rousseeuw (Fortran original), Anja Struyf (S original), Mia Hubert (S original), Kurt Hornik (port to R; maintenance(1999-2000)), Matthias Studer, Pierre Roudier, Juan Gonzalez
xtable876David B. Dahl
iterators839Rich Calaway, Revolution Analytics, Steve Weston

When I produced the first version of this report in December 2015, I simply used pkgDepends to (recursively) find the the complete dependency graph of the packages on CRAN. This time, doing this for all almost 10,000 packages took too long,
so I used available.packages do get the one-step list of dependencies, build the (alsmost ) 10,000 x 10,000 adjacency matrix, and then used the SparseM packages to compute the matrix powers to get the complete dependency graph. Computing matrix powers without SparseM also proved to be infeasibly time consuming.


RStudio on RaspberryPi 3

I have been able to build RStudio server on my RaspberryPi 3.
One change was crucial: I added a 16GB swap file on an external disk to my system (mounting the external drive and using dphys-swapfile – available in Raspbian)
I used the current version of Raspbian (Jessie), updated all packages,
and did
sudo apt-get install pandoc pandoc-citeproc
I also built R 3.3.2 from the sources (since the Raspbian repo only has R 3.1.1).

Installation of R went smoothly just with configure and make.

A few times durning build, the were notifications of missing (system) libraries, but the instructions what to install (using sudo apt-get install) were clear enough to finish the build).
Then I dowloaded the RStudio source from github and followed
the build instructions.

The process is not finished after
make install
but the INSTALL instructions are very clear about how to get the server up and running.

One minor change need to be made:
RStudion installs x86 binaries of pandoc and pandoc-citeproc in
/usr/local/lib/rstudio-server/bin/pandoc
These binaries have to be renamed (or deleted), than RStudio will use the binaries installed
from the Raspbian repo.