The R Project SVN R

Rev

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

Rev 69057 Rev 75092
Line 1... Line 1...
1
% File src/library/utils/man/windows/winextras.Rd
1
% File src/library/utils/man/winextras.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-2015 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{winextras}
6
\name{winextras}
7
\alias{win.version}
7
\alias{win.version}
8
\title{Get Windows Version}
8
\title{Get Windows Version}
9
\description{
9
\description{
10
  Get the self-reported Windows version number.  
10
  Get the self-reported Microsoft Windows version number.
11
}
11
}
12
\usage{
12
\usage{
13
win.version()
13
win.version()
14
}
14
}
15
\details{
15
\details{
16
  \code{win.version} is an auxiliary function for
16
  \code{win.version} is an auxiliary function for
17
  \code{\link{sessionInfo}} and \code{\link{bug.report}}.
17
  \code{\link{sessionInfo}} and \code{\link{bug.report}}.
18
}
18
}
19
\value{
19
\value{
20
  A character string describing the version of Windows reported to be in use. 
20
  A character string describing the version of Windows reported to be in use.
21
}
21
}
22
\note{
22
\note{
23
  This function is only available on Microsoft Windows.  
23
  This function is only available on Microsoft Windows.
24
    
24
 
25
  The result is based on the Windows \code{GetVersionEx} API function,
25
  The result is based on the Windows \code{GetVersionEx} API function,
26
  which for recent versions of Windows reports the compatibility version,
26
  which for recent versions of Windows reports the compatibility version,
27
  and not necessarily the actual version (hence 8.1 and 10 may be reported
27
  and not necessarily the actual version (hence 8.1 and 10 may be reported
28
  as 8). If the API call reports 8, this function returns
28
  as 8). If the API call reports 8, this function returns
29
  \code{>= 8}.
29
  \code{>= 8}.
30
}
30
}
-
 
31
\examples{
-
 
32
if(.Platform$OS.type == "windows")
-
 
33
   print(win.version())
-
 
34
}
31
\keyword{utilities}
35
\keyword{utilities}