vscode-R
vscode-R copied to clipboard
View() fails to handle lubridate Period objects within a data structure
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:
To Reproduce Steps to reproduce the behavior:
- Use VS Code with the R Extension
- Try to View a Period object within some data structure like so: View(tibble(x=period(num=20, unit="hours")))
- See View() output
Can you fix this issue by yourself? (We appreciate the help)
No :(
Expected behavior
Normal Rstudio behaviour:
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