Displaying 1 result from an estimated 1 matches for "l867".
Did you mean:
l807
2014 Apr 24
1
The regular expressions in compareVersion()
Hi,
I guess the backslash should not be used as the separator for
strsplit() in compareVersion(), because the period in [.] is no longer
a metacharacter (no need to "escape" it using a backslash):
https://github.com/wch/r-source/blob/trunk/src/library/utils/R/packages.R#L866-L867
> compareVersion
function (a, b)
{
....
a <- as.integer(strsplit(a, "[\\.-]")[[1L]])
b <- as.integer(strsplit(b, "[\\.-]")[[1L]])
....
<environment: namespace:utils>
A similar regular expression problem also exists in the Sweave syntax
(for \Sexpr{}), an...