Displaying 20 results from an estimated 200 matches similar to: "max on numeric_version with long components"
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]
2013 Oct 03
1
version comparison puzzle
Can anyone explain what I'm missing here?
max(pp1 <- package_version(c("0.99999911.3","1.0.4","1.0.5")))
## [1] ?1.0.4?
max(pp2 <- package_version(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
2024 Oct 17
2
Consider getNamespaceVersion() returning a numeric_version
I mean the `numeric_version` object not a numeric (double/int).
Basically to protect me from myself I'd prefer not to have to remember
to wrap `getNamespaceVersion()` with `as.package_version()`.
I suspect a grep of CRAN may highlight others who are erroneously
comparing character objects rather than a comparison between a
`numeric_version` object and a character.
Tim
On 17/10/2024
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
2024 Oct 17
1
Consider getNamespaceVersion() returning a numeric_version
On 17 October 2024 at 12:38, Tim Taylor wrote:
| Would R-Core be receptive to having getNamespaceVersion() return a
| numeric_version object instead of a named character?
Is this good enough? What's your actual issue a 'numeric' would address?
> as.package_version(getNamespaceVersion("base")) < "4.5.0"
[1] TRUE
>
>
2024 Oct 17
1
Consider getNamespaceVersion() returning a numeric_version
On 17/10/2024 13:42, Tim Taylor wrote:
> I mean the `numeric_version` object not a numeric (double/int).
> Basically to protect me from myself I'd prefer not to have to remember
> to wrap `getNamespaceVersion()` with `as.package_version()`.
>
> I suspect a grep of CRAN may highlight others who are erroneously
> comparing character objects rather than a comparison between
2024 Oct 17
1
Consider getNamespaceVersion() returning a numeric_version
Would R-Core be receptive to having getNamespaceVersion() return a
numeric_version object instead of a named character?
Tim
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
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.
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
| >
2007 Sep 13
1
trouble with installing Biobase package
Hi Everybody,
I am having a problem with loading Biobase package. I typed
2 lines below at R prompt
> source ("http://boconductor.org/biocLite.R")
> biocLite (lib="/usr/local/lib/R/library")
which attempted to install a bunch of packages with varying
degree of success. Out of 29, 13 failed. Biobase is one of
them. As a matter of fact, when I looked at logs, most
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 mentioned
2015 Jun 08
2
Bug in loadNamespace?
I am seeing very strange behaviour in R 3.2.0 patched (r68272) and a new
build of R-devel. The sessioninfo() from the former is below.
Here's what I see: If I set the locale, and trigger a namespace load, a
version comparison gives NA, and I get an error. For example, in a new
session started with R --vanilla from the terminal:
> Sys.setlocale(locale='en_US.UTF-8');grid::gpar()
2014 Nov 26
3
Problem understanding behaviour of versionCheck for loadNamespace (and when versions for Imports packages are checked)
Hi
I'm still exploring the R programming universe, so if this is being asked in
the wrong place, or in the wrong way (e.g. too verbose or lacking in crucial
detail or in the wrong format) please let me know
I am trying to understand when the version constraints for packages which
appear in the Imports field of a DESCRIPTION file are checked.
Along the way I've hit a snag
2009 Jan 29
1
Segfault when mistakenly calling [.data.frame (PR#13487)
Full_Name: Christian Brechbuehler
Version: 2.7.2, 2.8.1
OS: linux-gnu
Submission from: (NULL) (24.128.51.18)
Calling [.data.frame on 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))
2010 Mar 12
2
Data frame question
Hi,
I have the following question about creating data frames. I want to
create a data frame with 2 components: a vector and a matrix.
Let me use a simple example:
y <- rnorm(10)
x <- matrix(rnorm(150), nrow=10)
Now if I do
dd <- data.frame(x=x, y=y)
I get a data frame with 16 colums, but if, according to the documentation,
I do
dd <- data.frame(x=I(x), y=y)
then str(dd)
2015 Jun 08
3
Bug in loadNamespace?
On 07/06/2015 9:14 PM, Dirk Eddelbuettel wrote:
>
> On 7 June 2015 at 20:46, Duncan Murdoch wrote:
> | I am seeing very strange behaviour in R 3.2.0 patched (r68272) and a new
> | build of R-devel. The sessioninfo() from the former is below.
> |
> | Here's what I see: If I set the locale, and trigger a namespace load, a
> | version comparison gives NA, and I get an
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 Hornik wrote:
>>>>>> Andrea Gilardi via
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
>>
2012 Dec 27
4
Finding (swapped) repetitions of numbers pairs across two columns
Hi,
I've had this problem for a while and tackled it is a quite dirty way
so I'm wondering is a better solution exists:
If we have two vectors:
v1 = c(0,1,2,3,4)
v2 = c(5,3,2,1,0)
How to remove one instance of the "3,1" / "1,3" double?
At the moment I'm using the following solution, which is quite horrible:
v1 = c(0,1,2,3,4)
v2 = c(5,3,2,1,0)
ft <-