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"))
use() might take a list of packages
3 messages · Timothy Bates, Keith Jewell, Xu Wang
"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
I agree that it would be nice if library took an argument that is a vector of packages. I don't think one should need to use sapply here. -- View this message in context: http://r.789695.n4.nabble.com/use-might-take-a-list-of-packages-tp4031097p4032622.html Sent from the R devel mailing list archive at Nabble.com.