-
Notifications
You must be signed in to change notification settings - Fork 37
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
Use of focus
argument causes an error
#585
Labels
Comments
Reprex using only pillar: tbl <- pillar:::new_tbl(list(a = 1))
print(tbl, focus = "a")
#> Error in tbl_format_setup(x, width = width, ..., n = n, max_extra_cols = max_extra_cols, : formal argument "focus" matched by multiple actual arguments Created on 2022-08-28 by the reprex package (v2.0.1) |
Needs r-lib/rlang#1517 to fully clean up the docs and behavior. |
Documented in tibble: tidyverse/tibble@e3eac5b, there's nothing to document here. |
Thanks for reporting! About to update the main documentation page for tibble: https://tibble.tidyverse.org/reference/formatting.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is because
format_tbl()
no longer includes afocus
argument, but rather an input with apillar_focus
attribute. This can result in upstream issues intibble()
- see tibble issue #1351 for details.I'd suggest either retaining a soft-deprecated
focus
argument and using something like the following informat_tbl()
, or improving the error messages somehow (although thefocus
argument was experimental to begin with).The text was updated successfully, but these errors were encountered: