Skip to content

View() does play well with dplyr group_by() #247

@ghost

Description

Describe the bug
Using dplyr::group_by on a dataset will break the View() function in the Session Watcher

To Reproduce

  1. library(dplyr)
  2. Reproduce the error
mtcars %>% group_by(cyl) %>% View()
Error: Argument 3 must be length 32, not 1
  1. Workaround
mtcars %>% group_by(cyl) %>% ungroup() %>% View()

setting.json

    "r.alwaysUseActiveTerminal": true,
    "r.bracketedPaste": true,
    "r.rterm.mac": "/usr/local/bin/radian"
    "r.sessionWatcher": true

Expected behavior
The view function should not crash with group_by and could possibly also display the groups as in print.tibble()

Environment:

  • OS: macOS
  • VSCode Version: 1.42.1
  • R Version: 3.6.2
  • vscode-R version: 1.2.6

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