R 包版本中的连字符 (`-`)
Hyphen (`-`) in R package versions
我依赖的软件包列出了 4.0.4
以及 0.9-7
甚至 0.9-7.1
等版本。 (参见here)。
包版本控制中的连字符 (-
) 是什么意思?如何对其进行版本比较?我找不到这方面的任何文档。
包版本控制中的连字符 (-
) 是什么意思?
?numeric_version
中提到了连字符:
"Numeric versions are sequences of one or more non-negative integers, usually (e.g., in package 'DESCRIPTION
' files) represented as character strings with the elements of the sequence concatenated and separated by single .
or -
characters. R package versions consist of at least two such integers."
这里不区分句点.
和连字符-
。然而,正如 Hadley & Brian 在 R Packages; Package metadata - Version:
中指出的
I don’t recommend taking full advantage of R’s flexibility. Instead always use .
to separate version numbers.
他们指的是Semantic Versioning, where the use of hyphen is described:
A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version.
如何进行版本比较?
我依赖的软件包列出了 4.0.4
以及 0.9-7
甚至 0.9-7.1
等版本。 (参见here)。
包版本控制中的连字符 (-
) 是什么意思?如何对其进行版本比较?我找不到这方面的任何文档。
包版本控制中的连字符 (-
) 是什么意思?
?numeric_version
中提到了连字符:
"Numeric versions are sequences of one or more non-negative integers, usually (e.g., in package '
DESCRIPTION
' files) represented as character strings with the elements of the sequence concatenated and separated by single.
or-
characters. R package versions consist of at least two such integers."
这里不区分句点.
和连字符-
。然而,正如 Hadley & Brian 在 R Packages; Package metadata - Version:
I don’t recommend taking full advantage of R’s flexibility. Instead always use
.
to separate version numbers.
他们指的是Semantic Versioning, where the use of hyphen is described:
A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version.
如何进行版本比较?