Rev 10525 | Rev 16987 | Go to most recent revision | 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,verbose, file.ext, \dots)}\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 announcementis printed on the console before loading the shared library.The default value is taken from the verbose entry in the system options.}\item{file.ext}{the extension to append to the file name to specifythe library to be loaded. This defaults to the appropriate valuefor the operating system.}\item{\dots}{additional arguments needed by some libraries thatare passed to the call to \code{\link{dyn.load}} to controlhow 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{.dll} 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}}#ifdef unix\code{\link{SHLIB}} for how to create suitable shared libraries.#endif#ifdef windows\code{\link{SHLIB}} for how to create suitable DLLs.#endif}\examples{library.dynam()# which packages have been ``dynamically loaded''}\keyword{data}