search for: numeric_version

Displaying 20 results from an estimated 33 matches for "numeric_version".

2024 Apr 27
1
max on numeric_version with long components
I've noticed something in R devel which seems a little off and not the behavior I see in 4.4.0 or earlier versions. With numeric_versions that have long (>8 digit) final components max and min return the first element and not the max or min: In devel: > max(numeric_version(c("1.0.1.100000000", "1.0.3.100000000", "1.0.2.100000000"))) [1] ?1.0.1.100000000? > max(numeric_version(c("1.0.1.100...
2024 Apr 27
1
max on numeric_version with long components
? Sat, 27 Apr 2024 13:56:58 -0500 Jonathan Keane <jkeane at gmail.com> ?????: > In devel: > > max(numeric_version(c("1.0.1.100000000", "1.0.3.100000000", > "1.0.2.100000000"))) > [1] ?1.0.1.100000000? > > max(numeric_version(c("1.0.1.10000000", "1.0.3.10000000", > "1.0.2.10000000"))) > [1] ?1.0.3.10000000? Thank you Jon for spot...
2023 Jul 06
1
numeric_version doesn't like numeric versions anymore?
Dear R devs, I installed the recent devel R to test a package error when I intercept this warning when loading packages: ``` Warning in .make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version) : invalid non-character version specification 'x' (type: double) ``` After a long debugging, I realize that `numeric_version` in base does not support numerical input x by default now. A reproducible example: R 4.4 ``` > numer...
2008 Feb 13
0
RFC for package PopCon: a popularity contest for R and packages
...lt" [39] "unique.character" "$.packageDescription2" [41] "$.default" ">=.R_system_version" [43] "Ops.R_system_version" ">=.package_version" [45] "Ops.package_version" ">=.numeric_version" [47] ">=.package_version" "Ops.package_version" [49] ">=.numeric_version" "unlist.R_system_version" [51] "unlist.package_version" "unlist.numeric_version" [53] "unlist.default" "un...
2008 Feb 14
0
RFC for package PopCon: a popularity contest for R and packages
...lt" [39] "unique.character" "$.packageDescription2" [41] "$.default" ">=.R_system_version" [43] "Ops.R_system_version" ">=.package_version" [45] "Ops.package_version" ">=.numeric_version" [47] ">=.package_version" "Ops.package_version" [49] ">=.numeric_version" "unlist.R_system_version" [51] "unlist.package_version" "unlist.numeric_version" [53] "unlist.default" "un...
2013 Oct 03
1
version comparison puzzle
...(c("1.0.3","1.0.4","1.0.5"))) ## [1] ?1.0.5? I've looked at ?package_version , to no avail. Since max() goes to .Primitive("max") I'm having trouble figuring out where it goes from there: I **think** this is related to ?xtfrm , which goes to .encode_numeric_version, which is doing something I really don't understand (it's in base/R/version.R ...) .encode_numeric_version(pp1) ## [1] 1 1 1 ## attr(,"base") ## [1] 99999912 ## attr(,"lens") ## [1] 3 3 3 ## attr(,".classes") ## [1] "package_version" "numeric_ve...
2011 Jun 22
2
strange date problem - May 3, 1992 is NA
> is.na(strptime("5/2/1992", format="%m/%d/%Y")) [1] FALSE > is.na(strptime("5/3/1992", format="%m/%d/%Y")) [1] TRUE Any idea what's going on with this? Running strptime against all dates from around 1946, only 5/3/1992 was converted as "NA". Even stranger, it still seems to have a value associated with it (even though is.na thinks
2013 Apr 16
1
testInstalledBasic / testInstalledPackages
...9;)) report(is.name(res)) > res <- try(as.null( x ), silent = TRUE) > if(!inherits(res, 'try-error')) report(is.null(res)) [1] TRUE > res <- try(as.numeric( x ), silent = TRUE) > if(!inherits(res, 'try-error')) report(is.numeric(res)) [1] TRUE > res <- try(as.numeric_version( x ), silent = TRUE) > if(!inherits(res, 'try-error')) report(is.numeric_version(res)) [1] TRUE > res <- try(as.ordered( x ), silent = TRUE) > if(!inherits(res, 'try-error')) report(is.ordered(res)) [1] TRUE > res <- try(as.package_version( x ), silent = TRUE) >...
2017 Apr 19
1
c documentation after change
In R 3.4.0 RC, argument list of 'c' as S4 generic function has become (x, ...) . However, "S4 methods" section in documentation of 'c' (c.Rd) is not updated yet. Also, in R 3.4.0 RC, 'c' method of class "Date" ('c.Date') is still not explicitly documented.
2007 Sep 13
1
trouble with installing Biobase package
...list_extract.c -o sublist_extract.o gcc -std=gnu99 -shared -L/usr/local/lib64 -o Biobase.so anyMissing.o envir.o matchpt.o Rinit.o rowMedians.o sublist_extract.o ** R ** data ** inst ** preparing package for lazy loading Loading required package: tools Error : could not find function "numeric_version" Error: unable to load R code in package 'Biobase' Execution halted ERROR: lazy loading failed for package 'Biobase' ** Removing '/usr/local/lib/R/library/Biobase' It is choking at not finding a function "numeric_version". Has anybody seen this before an...
2024 Apr 25
1
Question regarding .make_numeric_version with non-character input
Hi Kurt, On 25 April 2024 at 08:07, Kurt Hornik wrote: | >>>>> Herv? Pag?s writes: | | > Hi Kurt, | > Is it intended that numeric_version() returns an error by default on | > non-character input in R 4.4.0? | | Dear Herve, yes, that's the intention. | | > It seems that I can turn this into a warning by setting | > _R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_=false but I don't | > seem to be able to find any...
2024 Apr 25
2
Question regarding .make_numeric_version with non-character input
>>>>> Herv? Pag?s writes: > Hi Kurt, > Is it intended that numeric_version() returns an error by default on > non-character input in R 4.4.0? Dear Herve, yes, that's the intention. > It seems that I can turn this into a warning by setting > _R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_=false but I don't > seem to be able to find any of this menti...
2015 Jun 08
2
Bug in loadNamespace?
...; Error in if (R_version_built_under < "3.0.0") stop(gettextf("package %s was built before R 3.0.0: please re-install it", : missing value where TRUE/FALSE needed I've tried debugging this, and the bad lines are these, in loadNamespace: R_version_built_under <- as.numeric_version(built$R) if (R_version_built_under < "3.0.0") stop(gettextf("package %s was built before R 3.0.0: please re-install it", sQuote(basename(pkgpath))), call. = FALSE, domain = NA) These are in the src/library/base/R/namespace.R file, around line 379. If I stop it before th...
2009 Jan 29
1
Segfault when mistakenly calling [.data.frame (PR#13487)
...an object that's not a data frame, specifically 1:10, causes segmentation fault. Context ======= We can subscript with a number of different notations: > (1:10)[3] [1] 3 > do.call(get("[",pos="package:base"),list(1:10,3)) [1] 3 > do.call(get("[.numeric_version",pos="package:base"),list(1:10,3)) [1] 3 Problem ======= If we mistakenly believe the object is a data frame (as we did in a much more complicated real situation), this happens: > do.call(get("[.data.frame",pos="package:base"),list(1:10,3)) Error in...
2014 Nov 26
3
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
...= package_version('3.0'))) This should fail (package2 has version 0.3, not 3.0) but instead it seems to load package2, version 0.3 OK. Reading the code of loadNamespace, there is some code which says if (length(z <- versionCheck) == 3L && !do.call(z$op, list(as.numeric_version(version), z$version))) stop(gettextf("namespace %s %s is being loaded, but %s %s is required", sQuote(package), version, z$op, z$version), domain = NA) I think it is the length(z <- versionCheck) == 3L part of the if test that is allowing the incorrect versio...
2024 Apr 24
1
Question regarding .make_numeric_version with non-character input
Hi Kurt, Is it intended that numeric_version() returns an error by default on non-character input in R 4.4.0? It seems that I can turn this into a warning by setting _R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_=false but I don't seem to be able to find any of this mentioned in the NEWS file. Thanks, H. On 4/1/24 05:28, Kurt Hor...
2010 Mar 12
2
Data frame question
....data.frame.difftime as.data.frame.factor [11] as.data.frame.ftable* as.data.frame.integer [13] as.data.frame.list as.data.frame.logical [15] as.data.frame.logLik* as.data.frame.matrix [17] as.data.frame.model.matrix as.data.frame.numeric [19] as.data.frame.numeric_version as.data.frame.ordered [21] as.data.frame.POSIXct as.data.frame.POSIXlt [23] as.data.frame.raw as.data.frame.table [25] as.data.frame.ts as.data.frame.vector so it looks like there is a matrix method for as.data.frame. The question then is how can I override t...
2024 Apr 25
1
Question regarding .make_numeric_version with non-character input
On 4/24/24 23:07, Kurt Hornik wrote: >>>>>> Herv? Pag?s writes: >> Hi Kurt, >> Is it intended that numeric_version() returns an error by default on >> non-character input in R 4.4.0? > Dear Herve, yes, that's the intention. > >> It seems that I can turn this into a warning by setting >> _R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_=false but I don't >> seem to be able to...
2015 Jun 08
3
Bug in loadNamespace?
..."3.0.0") stop(gettextf("package %s > | was built before R 3.0.0: please re-install it", : > | missing value where TRUE/FALSE needed > | > | I've tried debugging this, and the bad lines are these, in loadNamespace: > | > | R_version_built_under <- as.numeric_version(built$R) > | if (R_version_built_under < "3.0.0") stop(gettextf("package %s was built > | before R 3.0.0: please re-install it", > | sQuote(basename(pkgpath))), call. = FALSE, domain = NA) > | > | These are in the src/library/base/R/namespace.R file, aroun...
2023 Apr 08
0
Time to add is.formula() to 'stats'?
...icsAnnot" [9] "hclust" "hexmode" "octmode" "person" [13] "personList" "roman" 3. For which Z does is.Z() just call inherits(., "Z")? [1] "data.frame" "factor" "numeric_version" "ordered" [5] "package_version" "raster" "relistable" "table" -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: as.is.R URL: <https://stat.ethz.ch/pipermail/r-devel/attachm...