Skip to content

Default to utils::view() when no asJSON S3 method exists #742

@mkoohafkan

Description

@mkoohafkan

R tibble() objects can contain objects that do not have asJSON methods (e.g., difftime objects, units objects, etc.) . In these cases R will return an error when calling the View() function provided by VSCode-R:

Error: No method asJSON S3 class: units

However, the default utils::View() function can still display these datatypes. It would be great if either:

  1. VSCode-R View() function could automatically default to using utils::View() if an asJSON error is encountered, or
  2. The error message returned by VSCode-R View() function could direct users to try using utils::View() to display the dataset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions