The R Project SVN R

Rev

Rev 75092 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75092 Rev 83645
Line 1... Line 1...
1
% File src/library/utils/man/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-2018 R Core Team
3
% Copyright 1995-2023 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}
Line 20... Line 20...
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.  It
26
  which for recent versions of Windows reports the compatibility version,
26
  is not known how to detect a version of Windows before it is released, and
27
  and not necessarily the actual version (hence 8.1 and 10 may be reported
27
  hence the textual information returned by \R may identify an older version
-
 
28
  than installed.  The build number is more reliable.  When running \R in
28
  as 8). If the API call reports 8, this function returns
29
  compatibility mode, the reported version including the build number is the
29
  \code{>= 8}.
30
  compatibility version, not the installed version.
30
}
31
}
31
\examples{
32
\examples{
32
if(.Platform$OS.type == "windows")
33
if(.Platform$OS.type == "windows")
33
   print(win.version())
34
   print(win.version())
34
}
35
}