Skip to content
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

Only show first class in {.obj_type_friendly} #669

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

olivroy
Copy link
Contributor

@olivroy olivroy commented Feb 13, 2024

To display like rlang
r-lib/rlang#1622

Let me know if you think this is reasonable, and if it requires NEWS.

cli::cli_abort("{.obj_type_friendly {gt::gt(gt::exibble)}}")
Error:
! a <gt_tbl/list> object

With this PR (hopefully)

cli::cli_abort("{.obj_type_friendly {gt::gt(gt::exibble)}}")
Error:
! a <gt_tbl> object

@olivroy olivroy changed the title Only show first class Only show first class in {.obj_type_friendly} Feb 13, 2024
@gaborcsardi
Copy link
Member

Thanks!

@gaborcsardi gaborcsardi merged commit 1b5e691 into r-lib:main Feb 14, 2024
1 of 13 checks passed
@olivroy olivroy deleted the patch-1 branch February 14, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants