1% File src/library/utils/man/DLL.version.Rd
2% Part of the R package, https://www.R-project.org
3% Copyright 1995-2018 R Core Team
4% Distributed under GPL 2 or later
5
6\name{DLL.version}
7\alias{DLL.version}
8\title{DLL Version Information on MS Windows}
9\description{
10  On MS Windows only, return the version of the package and the version of \R used to
11  build the DLL, if available.
12}
13\usage{
14DLL.version(path)
15}
16\arguments{
17  \item{path}{character vector of length one giving the complete path to
18    the DLL.}
19}
20\value{
21  If the DLL does not exist, \code{NULL}.
22
23  A character vector of length two, giving the DLL version and the version of
24  \R used to build the DLL.  If the information is not available, the
25  corresponding string is empty.
26}
27\note{
28  This is only available on Windows.
29}
30\examples{
31if(.Platform$OS.type == "windows") withAutoprint({
32  DLL.version(file.path(R.home("bin"), "R.dll"))
33  DLL.version(file.path(R.home(), "library/stats/libs", .Platform$r_arch, "stats.dll"))
34})
35}
36\keyword{utilities}
37