r-lib / bit64

An R package with an S3 Class for Vectors of 64bit Integers
32 stars 8 forks source link

Determine why all.equal() test gives "scaled difference Inf" on old R #100

Closed MichaelChirico closed 1 month ago

MichaelChirico commented 1 month ago

This test fails on R 3.6.3:

one_e9 = as.integer64(1000000000L)
expect_true(all.equal(
  rep(one_e9, 5L),
  one_e9 + (-1:3),
  scale = (1:5)*one_e9
))
`actual` is a character vector ('Mean scaled difference: Inf')
`expected` is a logical vector (TRUE)