tibble objects and pillar/cli formatting lead to terminal formatting/line wrap problems
See original GitHub issueDescribe the bug
printing tibble
objects results in weird formatting, timestamps (see #878). Changing option width
(e.g., options(width = 150)
does not have consistent results and generally does not resolve issue, nor does the Alt+Z
terminal word wrap toggle. Printing of timings has also been observed in e.g., printed outputs from the targets
package, so this may also be an interaction with formatting produced by the cli
package.
To Reproduce R code to reproduce the behavior:
library(tibble)
print(mtcars)
print(as_tibble(mtcars))
Expected behavior
tibble
objects should not cause timings to print or introduce line wrapping independent of terminal settings.
Screenshots
Environment (please complete the following information):
- OS: Windows 10
- VSCode Version: 1.63.2
- R Version: 4.1.2
- vscode-R version: 2.3.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Respect package:cli environment variable NO_COLOR and ...
tibble objects and pillar/cli formatting lead to terminal formatting/line wrap problems REditorSupport/vscode-R#942 · Timings being printed ...
Read more >Printing tibbles — formatting • tibble
Tibbles only print as many rows and columns as fit on one screen, supplemented by a summary of the remaining rows and columns....
Read more >Simple Data Frames • tibble
A tibble, or tbl_df , is a modern reimagining of the data.frame, keeping what time has proven to be effective, and throwing out...
Read more >tibble 3.0.0 - Tidyverse
Accessing and updating rows and columns is now based on a rock-solid framework and works consistently for all types of columns, including list, ......
Read more >Controlling display of numbers - Tibble
Tibbles print numbers with three significant digits by default, switching to scientific ... the result inherits the formatting of the first num object....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI, I will not follow this thread any more, but if it turns out that the cli ANSI detection should be improved, please ping me in the cli repo. Thanks!
@mkoohafkan I share your thoughts. In my case, I connect via Citrix Workspace, and I suspect VMware plays a role too (there is an icon for VMware Tools in my toolbar).
Unfortunately, the whole setup is all a bit intransparent.