question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tibble objects and pillar/cli formatting lead to terminal formatting/line wrap problems

See original GitHub issue

Describe 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

image image

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:open
  • Created 2 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gaborcsardicommented, Feb 9, 2022

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!

0reactions
mz-bayercommented, Mar 3, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found