The R Project SVN R

Rev

Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 73360
Line 1... Line 1...
1
% File src/library/base/man/getLoadedDLLs.Rd
1
% File src/library/base/man/getLoadedDLLs.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2014 R Core Team
3
% Copyright 1995-2017 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{getLoadedDLLs}
6
\name{getLoadedDLLs}
-
 
7
\title{Get DLLs Loaded in Current Session}
7
\alias{getLoadedDLLs}
8
\alias{getLoadedDLLs}
8
\alias{print.DLLInfo}
9
\alias{print.DLLInfo}
9
\alias{print.DLLInfoList}
10
\alias{print.DLLInfoList}
-
 
11
\alias{[.DLLInfoList}
10
\alias{$.DLLInfo}
12
\alias{$.DLLInfo}
11
% and the classes
13
% and the classes
12
\alias{DLLInfo}
14
\alias{DLLInfo}
13
\alias{DLLInfoList}
15
\alias{DLLInfoList}
14
 
-
 
15
\title{Get DLLs Loaded in Current Session}
-
 
16
\description{
16
\description{
17
  This function provides a way to get a list of all the DLLs (see
17
  This function provides a way to get a list of all the DLLs (see
18
  \code{\link{dyn.load}}) that are currently loaded in the \R session.
18
  \code{\link{dyn.load}}) that are currently loaded in the \R session.
19
}
19
}
20
\usage{
20
\usage{
Line 22... Line 22...
22
}
22
}
23
\details{
23
\details{
24
  This queries the internal table that manages the DLLs.
24
  This queries the internal table that manages the DLLs.
25
}
25
}
26
\value{
26
\value{
27
  An object of class \code{"DLLInfoList"} which is a list with an
27
  An object of class \code{"DLLInfoList"} which is a \code{\link{list}}
28
  element corresponding to each DLL that is currently loaded in the
28
  with an element corresponding to each DLL that is currently loaded in the
29
  session.  Each element is an object of class \code{"DLLInfo"} which
29
  session.  Each element is an object of class \code{"DLLInfo"} which
30
  has the following entries.
30
  has the following entries.
31
 
31
 
32
  \item{name}{the abbreviated name.}
32
  \item{name}{the abbreviated name.}
33
  \item{path}{the fully qualified name of the loaded DLL.}
33
  \item{path}{the fully qualified name of the loaded DLL.}
Line 36... Line 36...
36
    searches the entire symbol table of the DLL.}
36
    searches the entire symbol table of the DLL.}
37
  \item{handle}{a reference to the C-level data structure that
37
  \item{handle}{a reference to the C-level data structure that
38
    provides access to the contents of the DLL.
38
    provides access to the contents of the DLL.
39
    This is an object of class \code{"DLLHandle"}.}
39
    This is an object of class \code{"DLLHandle"}.}
40
 
40
 
41
  Note that the class \code{DLLInfo} has an overloaded method for
41
  Note that the class \code{DLLInfo} has a method for
42
  \code{$} which can be used to resolve native symbols within that
42
  \code{$} which can be used to resolve native symbols within that
43
  DLL.  Therefore, one must access the R-level elements described
43
  DLL.  Therefore, one must access the R-level elements described
44
  above using \code{[[}, e.g.\sspace{}\code{x[["name"]]} or \code{x[["handle"]]}.
44
  above using \code{[[}, e.g.\sspace{}\code{x[["name"]]} or \code{x[["handle"]]}.
45
}
45
}
46
\author{Duncan Temple Lang \email{duncan@wald.ucdavis.edu}.}
46
\author{Duncan Temple Lang \email{duncan@wald.ucdavis.edu}.}
Line 52... Line 52...
52
  \code{\link{getDLLRegisteredRoutines}},
52
  \code{\link{getDLLRegisteredRoutines}},
53
  \code{\link{getNativeSymbolInfo}}
53
  \code{\link{getNativeSymbolInfo}}
54
}
54
}
55
\examples{
55
\examples{
56
getLoadedDLLs()
56
getLoadedDLLs()
-
 
57
 
-
 
58
utils::tail(getLoadedDLLs(), 2) # the last 2 loaded ones, still a DLLInfoList
57
}
59
}
58
\keyword{interface}
60
\keyword{interface}