New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error formatting numbers with different magnitudes at certain widths #141

Closed
krlmlr opened this Issue Oct 17, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@krlmlr
Copy link
Member

krlmlr commented Oct 17, 2018

df <- list(
  name = c("Aruba", "Afghanistan"),
  region = c("Americas", "Asia"),
  pop = c(102577, 30696958)
)

pillar::colonnade(df, width = 21)
#> Error in format.pillar_shaft_decimal(x$shaft, width = width, ...): Need at least width 6 requested 5.FALSE

Created on 2018-10-17 by the reprex package (v0.2.1.9000)

Downstream problem: tidyverse/tibble#508.

@krlmlr krlmlr added the bug label Oct 17, 2018

@krlmlr

This comment has been minimized.

Copy link
Member

krlmlr commented Oct 17, 2018

Error occurs in squeeze() :

df <- list(
  name = c("Aruba", "Afghanistan"),
  region = c("Americas", "Asia"),
  pop = c(102577, 30696958)
)

x <- pillar::colonnade(df)
pillar::squeeze(x, width = 21)
#> Error in format.pillar_shaft_decimal(x$shaft, width = width, ...): Need at least width 6 requested 5.FALSE

Created on 2018-10-17 by the reprex package (v0.2.1.9000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment