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

format_table loses alignment #119

Open
marcmenem opened this issue Aug 5, 2019 · 0 comments
Open

format_table loses alignment #119

marcmenem opened this issue Aug 5, 2019 · 0 comments

Comments

@marcmenem
Copy link

I built a table using

is <- formattable(x, align=c('l','l','r'))
Trying to output it as HTML using format_table, the alignment parameter is lost because the format_table does not check my is object for align data, it is just a parameter of the function.

A workaround is to explicitly reuse the align format from the parameters.
format_table(is, align=attributes(is)$formattable$format$align)

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

No branches or pull requests

1 participant