[R] package argument to library as string
David Kane <David Kane
a296180 at mica.fmr.com
Thu Nov 29 15:35:27 CET 2001
The help page for library says that:
package, help: name or character string giving the name of a package.
Yet, I don't seem to be able to use a string variable here.
system sparc, solaris2.6
> pkg <- "ts"
Error in library(pkg) : There is no package called `pkg'
What am I misunderstanding? Why isn't pkg treated the same as "ts" by library()?
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help