Rev 9615 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{library.dynam}\alias{library.dynam}\alias{.Dyn.libs}\title{Loading Shared Libraries}\usage{library.dynam(chname, package = .packages(), lib.loc = .lib.loc)}\arguments{\item{chname}{a character string naming a shared library to load.}\item{package}{a character vector with the names of packages to searchthrough.}\item{lib.loc}{a character vector describing the location of \Rlibrary trees to search through.}\item{verbose}{a logical value indicating whether an announcement is printedon the console before loading the shared library. The default value is takenfrom the verbose entry in the system options.}\item{file.ext}{the extension to append to the file name to specify the library tobe loaded. This defaults to the appropriate value for the operating system.}\item{...}{additional arguments needed by some libraries that are passed to thecall to \code{\link{dyn.load}} to control how the library is loaded.}}\description{Load the specified file of compiled code if it has not been loaded already.}\details{This is designed to be used inside apackage rather than at the command line, and should really only beused inside \code{\link{.First.lib}()}. The system-specific extensionfor shared libraries#ifdef unix(e.g., \file{.so} or \file{.sl} on Unix systems)#endif#ifdef windows(\file{.dd} on Windows)#endifshould not be added.}\value{The \code{.Dyn.libs} vector with the names of packageswhich have used \code{library.dynam(..)} in the current \R session.It is returned as \code{\link{invisible}}, unless the \code{chname}argument is missing.Users should never set \code{.Dyn.libs} directly.}\seealso{\code{\link{.First.lib}}, \code{\link{library}},\code{\link{dyn.load}}, \code{\link{.packages}},\code{\link{.lib.loc}}}\examples{library.dynam()# which packages have been ``dynamically loaded''}\keyword{data}