r-lib / sparsevctrs

Sparse vector class using ALTREP
https://r-lib.github.io/sparsevctrs/
Other
12 stars 1 forks source link

make better error handling of `length` being too large #56

Closed EmilHvitfeldt closed 5 months ago

EmilHvitfeldt commented 5 months ago

library(sparsevctrs) sparse_integer(integer(), integer(), length = 100000000000)

> Warning in sparse_integer(integer(), integer(), length = 1e+11): NAs introduced

> by coercion to integer range

> [1]

EmilHvitfeldt commented 5 months ago

closed in https://github.com/EmilHvitfeldt/sparsevctrs/commit/7672fd8dc46ddbc7067d82d912f8ead3ea617ec1