Skip to content

tibble::view() fails in Ark (& Positron) with "variable names are limited to 10000 bytes" error #864

@coatless

Description

@coatless

Description

The tibble::view() function (accessed via %>% view) fails when executed in Ark and Positron environments, while working correctly in RStudio and R.app. This prevents users from viewing data frames using the tidyverse pipe syntax.

Reproduction Steps

library(tidyverse)
library(nycflights13)
df1 <- weather %>% view

Expected vs Actual Behavior

Working Environments
(RStudio, R.app)
Failing Environments
(Ark, Positron)
R.app (macOS) Positron
Screenshot of R.app showing a spreadsheet-style data viewer displaying weather data with columns for origin, year, month, day, hour, temperature, dewp, humidity, wind direction, wind speed, wind gust, and precipitation. Screenshot of Positron IDE showing tibble::view() error with 'Error in exists(): variable names are limited to 10000 bytes' message and failed df1 assignment.
RStudio Ark (Jupyter Console)
Screenshot showing RStudio's data viewer successfully displaying the weather dataset with filter options and successful command execution. Screenshot of Jupyter console showing Ark R session with tibble::view() error and 'variable names are limited to 10000 bytes' error message.

Error Details

Error Message:

Error in `exists()`:
! variable names are limited to 10000 bytes

Stack Trace:

Hide Traceback
    ▆
 1. ├─weather %>% view
 2. ├─tibble::view(.)
 3. │ └─rlang::eval_tidy(quo(view_fun(!!x, !!title)))
 4. └─view_fun(`<tibble[,15]>`, ".")
 5.   ├─base::isTRUE(exists(name, envir = env, inherits = FALSE))
 6.   └─base::exists(name, envir = env, inherits = FALSE)

Possible cause

The issue appears to stem from how tibble::view() attempts to retrieve the View function:

view_fun <- get("View", envir = as.environment("package:utils"))

Reference: ark/src/modules/positron/view.R#L51

view_function <- function(

The view_fun() function is attempting to retrieve the View function from the utils package, but this lookup mechanism seems to be incompatible with Ark's environment setup, resulting in the "variable names are limited to 10000 bytes" error during the exists() call.

Environment Information

  • Tidyverse version: 2.0.0
  • R version: 4.5.1
  • Affected platforms: Ark 0.1.195, Positron 2025.07.0 (Universal) build 204
  • Working platforms: RStudio (Version 2025.05.1+513 (2025.05.1+513)), R.app (R 4.5.1 GUI 1.82 High Sierra build (8536))

Reported initially on Reddit by atthemost7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions