Skip to content

Title: Data viewer fails with "missing value where TRUE/FALSE needed" on integer columns whose range exceeds .Machine$integer.max #17951

Closed

Description

@hsaxe

System details

RStudio Edition : Desktop
RStudio Version : 2026.05.0+218
OS Version      : Windows 11 x64 (build 26200)
R Version       : R version 4.5.1 (2025-06-13 ucrt)

Steps to reproduce the problem

df <- data.frame(id = c(-2000000000L, 2000000000L))

str(df) # confirms 'id' is integer
'data.frame': 2 obs. of 1 variable:
$ id: int -2000000000 2000000000
View(df) # errors
Error in if (n_distinct <= 12 && isTRUE(all(hist_vals%%1 == 0))) int_breaks <- seq(min_v - :
missing value where TRUE/FALSE needed
In addition:
Warning message:
In max_v - min_v : NAs produced by integer overflow
df$id <- as.numeric(df$id)
View(df) # works

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. kevinushey commented on Jun 12, 2026

    @kevinushey
    Collaborator

    Thanks for the bug report! We'll take a look.

  2. self-assigned this
    on Jun 12, 2026
  3. added this to the Blue Plumbago milestone on Jun 12, 2026
  4. added theissue type on Jun 12, 2026
  5. kevinushey commented on Jun 16, 2026

    @kevinushey
    Collaborator

    Fixed via #17991.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions