Missing warning message when coercing double to integer64

Open
#187 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
data

Research direction

Start by running the reported as.integer64(c(9223372036854776000)) example and trace the double-to-integer64 coercion path. Compare it with values that do emit warnings, then add coverage for the inconsistent case and verify that oversized doubles produce the expected warning rather than only .

Written by the indexing model from the issue text.

Description

In general the warning message when coercing double values that are to high exists. But for some values it does not appear consistently.

as.integer64(c(9223372036854776000))
# integer64
# [1] <NA>
Dominant language
R
Stars
40
Forks
13
Avg merge
10h 24m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/bit64

All issues in r-lib/bit64

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.