Skip to content

R "sumo" package suggestion

2 messages · rsparapa at mcw.edu, Brian Ripley

#
r-help:

I have an R package suggestion.  After spending
several hours the other day installing about a dozen
packages, I had an idea.  In xemacs, there is a
"sumo" package which allows me to install a large
bundle of xemacs packages at one time (about a 120
modes including ESS).  I think R should have a 
similar bundle.  It would be so much easier than
hunting/downloading/installing.  Martin encouraged 
me to send this suggestion to r-help.  In addition, 
he put together a few comments relating to the previous 
times that this, or a similar suggestion, has been 
brought up here.
Martin wrote:
If you search for "install all CRAN packages"
on
	http://maths.newcastle.edu.au/~rking/R/

(the URL which is quickly found from the [Search] sidebar of
http://www.R-project.org/) 

You find things like Greg Warnes 'Makefile'    
http://tolstoy.newcastle.edu.au/R/help/04/04/0723.html
and
http://tolstoy.newcastle.edu.au/R/help/04/04/0616.html
which is from Tony and has the following small function:

  installNewCRANPackages <- function() {
    ## (C) A.J. Rossini, 2002--2004
    test2 <- packageStatus()$avail["Status"]
    install.packages(row.names(test2)[which(test2$Status=="not installed")])
  }

----------

Rodney Sparapani              Medical College of Wisconsin
Sr. Biostatistician           Patient Care & Outcomes Research
rsparapa at mcw.edu              http://www.mcw.edu/pcor
Was 'Name That Tune' rigged?  WWLD -- What Would Lombardi Do
#
What exactly is the suggestion?

R does have package bundles.  It ships with a basic collection of
packages.

install.packages will install many packages at once.

R-devel has a function new.packages to find the currently uninstalled
packages, so install.packages(new.packages()) installs them all, should
they actually all work on your system (and that's impossible as several
require a Unix-alike and one requires Windows)
On Thu, 11 Nov 2004, Rodney Sparapani wrote: