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

Preserve matrix dimensions in dataTablesJSON #2658

Merged
merged 1 commit into from Oct 11, 2019
Merged

Preserve matrix dimensions in dataTablesJSON #2658

merged 1 commit into from Oct 11, 2019

Conversation

wch
Copy link
Collaborator

@wch wch commented Oct 8, 2019

This fixes #2653.

Don't merge yet - it still needs a NEWS entry, which I will add after shiny 1.4.0 is on CRAN and we merge the RC branch into master.

@wch wch requested a review from cpsievert October 8, 2019 21:04
Copy link
Collaborator

@cpsievert cpsievert left a comment

Choose a reason for hiding this comment

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

Looks ok to me, but maybe it's htmltools::htmlEscape() job to preserve the dimension of a character matrix?

@wch
Copy link
Collaborator Author

wch commented Oct 10, 2019

I think a matrix is kind of a special case -- the vast majority of functions that operate on vectors don't make any claims about whether they'll preserve matrix dimensions, and I don't think there's any particular reason that htmltools::htmlEscape is different.

@wch wch merged commit a81c161 into master Oct 11, 2019
@wch wch deleted the fix-data-table branch October 11, 2019 19:56
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.

shiny::dataTableOutput() requested unknown parameter warning
2 participants