| % File src/library/base/man/getLoadedDLLs.Rd |
| % Part of the R package, https://www.R-project.org |
| % Copyright 1995-2017 R Core Team |
| % Distributed under GPL 2 or later |
| |
| \name{getLoadedDLLs} |
| \title{Get DLLs Loaded in Current Session} |
| \alias{getLoadedDLLs} |
| \alias{print.DLLInfo} |
| \alias{print.DLLInfoList} |
| \alias{[.DLLInfoList} |
| \alias{$.DLLInfo} |
| % and the classes |
| \alias{DLLInfo} |
| \alias{DLLInfoList} |
| \description{ |
| This function provides a way to get a list of all the DLLs (see |
| \code{\link{dyn.load}}) that are currently loaded in the \R session. |
| } |
| \usage{ |
| getLoadedDLLs() |
| } |
| \details{ |
| This queries the internal table that manages the DLLs. |
| } |
| \value{ |
| An object of class \code{"DLLInfoList"} which is a \code{\link{list}} |
| with an element corresponding to each DLL that is currently loaded in the |
| session. Each element is an object of class \code{"DLLInfo"} which |
| has the following entries. |
| |
| \item{name}{the abbreviated name.} |
| \item{path}{the fully qualified name of the loaded DLL.} |
| \item{dynamicLookup}{a logical value indicating whether R uses only |
| the registration information to resolve symbols or whether it |
| searches the entire symbol table of the DLL.} |
| \item{handle}{a reference to the C-level data structure that |
| provides access to the contents of the DLL. |
| This is an object of class \code{"DLLHandle"}.} |
| |
| Note that the class \code{DLLInfo} has a method for |
| \code{$} which can be used to resolve native symbols within that |
| DLL. Therefore, one must access the R-level elements described |
| above using \code{[[}, e.g.\sspace{}\code{x[["name"]]} or \code{x[["handle"]]}. |
| } |
| \author{Duncan Temple Lang \email{duncan@wald.ucdavis.edu}.} |
| \note{ |
| We are starting to use the \code{handle} elements in the DLL object to |
| resolve symbols more directly in \R. |
| } |
| \seealso{ |
| \code{\link{getDLLRegisteredRoutines}}, |
| \code{\link{getNativeSymbolInfo}} |
| } |
| \examples{ |
| getLoadedDLLs() |
| |
| utils::tail(getLoadedDLLs(), 2) # the last 2 loaded ones, still a DLLInfoList |
| } |
| \keyword{interface} |