[Rd] use() might take a list of packages

Keith Jewell k.jewell at campden.co.uk
Fri Nov 11 14:32:45 CET 2011


"Timothy Bates" <timothy.c.bates at gmail.com> wrote in message 
news:1B5E1D00-397B-429B-B20C-0FBA060841A9 at gmail.com...
I heard that a function called use() had been mooted as being more 
intuitively named than library()

If so, it might be handy if this worked

use(c("MASS","car”))

currently this fails…

library(c("MASS","car"))
--------------------------------------------
This seems to work, and doesn't seem much effort

> sapply(c("MASS","car"), library, character.only = TRUE)

KJ



More information about the R-devel mailing list