vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

View() fails to handle lubridate Period objects within a data structure

Open theSway opened this issue 1 year ago • 1 comments

Describe the bug In VS Code, View() displays only the seconds of Period objects when in some sort of larger data structure, like a tibble, data frame or a list. Haven't tested with other data structures.

View(tibble(x=lubridate::period(num = 20, unit="hours")))

Behaviour in VS Code with the R extension: image

To Reproduce Steps to reproduce the behavior:

  1. Use VS Code with the R Extension
  2. Try to View a Period object within some data structure like so: View(tibble(x=period(num=20, unit="hours")))
  3. See View() output

Can you fix this issue by yourself? (We appreciate the help)

No :(

Expected behavior Normal Rstudio behaviour: image

Environment (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS
  • VSCode Version: 1.81
  • R Version: 4.3.0
  • vscode-R version: 2.8.1

theSway avatar Aug 23 '23 11:08 theSway