The R Project SVN R

Rev

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

Rev 68948 Rev 87243
Line 1... Line 1...
1
% File src/library/utils/man/compareVersion.Rd
1
% File src/library/utils/man/compareVersion.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-2007 R Core Team
3
% Copyright 1995-2024 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{compareVersion}
6
\name{compareVersion}
7
\alias{compareVersion}
7
\alias{compareVersion}
8
\title{Compare Two Package Version Numbers}
8
\title{Compare Two Package Version Numbers}
Line 17... Line 17...
17
}
17
}
18
\value{
18
\value{
19
  \code{0} if the numbers are equal, \code{-1} if \code{b} is later
19
  \code{0} if the numbers are equal, \code{-1} if \code{b} is later
20
  and \code{1} if \code{a} is later (analogous to the C function
20
  and \code{1} if \code{a} is later (analogous to the C function
21
  \code{strcmp}).
21
  \code{strcmp}).
-
 
22
 
-
 
23
  Gives an \R error on malformed inputs.
22
}
24
}
23
\details{
25
\details{
24
  \R package version numbers are of the form \code{x.y-z} for integers
26
  \R package version numbers are of the form \code{x.y-z} for integers
25
  \code{x}, \code{y} and \code{z}, with components after \code{x}
27
  \code{x}, \code{y} and \code{z}, with components after \code{x}
26
  optionally missing (in which case the version number is older than
28
  optionally missing (in which case the version number is older than