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

Update kable to allow custom formating #1827

Merged
merged 10 commits into from
Jun 3, 2020
Merged

Update kable to allow custom formating #1827

merged 10 commits into from
Jun 3, 2020

Conversation

thebioengineer
Copy link
Contributor

With the coming of vctrs, it is probably inevitable that there will be a number of new vector classes. And with that, a number of custom printing methods. With the current format of kable, it uses as.matrix() to handle the conversion, but it might be better to handle the conversion explicitly.

As far as I could test, this would not change the general behavior.

@thebioengineer
Copy link
Contributor Author

With the latest addition, I added a test to confirm custom formatting of non-numeric vectors works.

Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@thebioengineer
Copy link
Contributor Author

Thanks @yihui!

I found this while working on {colortable} and playing around with vctrs. Hoping this will resolve this for everyone!

@yihui yihui merged commit 12219b1 into yihui:master Jun 3, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants