Skip to content
Prev 15100 / 63424 Next

Packages and Libraries (was: Re: lme4 "package" etc ..)

Why not use(), as the GCD?
Help us out.

	use <- function(package, pos = 2, lib.loc, ...)

where 'package' is either a character string or some sort of package
object/reference, to be specified later.  And 'lib.loc' needs to have a
different name if we rename libraries into stores or whatever ...

What should this return?  Currently, 'library' returns the list of
loaded (or available) packages by default, as a list of names, which is
not good enough.  So we need something like the DLLInfoList returned by
getLoadedDLLs() (and the docs should actually mention that class), or
something usable by the package management tools ... and this is under
redesign as well.

But why should this really return info on all loaded/attached packages?
An alternative might be just returning the package meta-data in some
form.  Or nothing, which would fit into the idea that it really does
nothing apart from loading and attaching a package.

(And maybe a condition object inheriting from packageLoadAndAttachError
in case of failure? :-))

-k

Thread (20 messages)