-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add Rmarkdown table style #19
Comments
Thanks again!
So only the And as I have never used this syntax: what happens if there is no header or For example:
|
I hadn't thought considered when the object has no colnames: the table format seems to require the column names line, even if the column names are blank, so in order to get that matrix to print, you need:
I've created a new branch for myself to work on these kinds of issues without adding dozens of commits to the pull request, I'll see what I can put together over the next couple of days. I think I already have the tables working when there are no colnames, but I'll do some further testing and try to get alignment working as well. |
Awesome, thank you very much! Please feel free to ping me at any time if I could help you with anything, and also please go ahead with adding dozens of commits to the pull request, IMHO there is no problem with that. Okay, thanks again. |
Alright, I now have the table style working with blank column names, and I've written a helper function to align all the columns according to the Here's some very quick examples of the results: RMarkdown input file It should all be in the pull request if you're happy to merge. |
That's awesome, thanks a lot! |
knitr
uses PHP Markdown Extra style tables, which means thatpandoc.table()
doesn't seem to work well withknitr
. Adding a new style to markdown table might make it easier to usepander
in aknitr
workflow (see, for example Stack Overflow: Programmatically creating Markdown tables in R with KnitR.PS: I haven't tried to implement the left/right/center alignment yet, but I'm happy to start working on it if needed.
The text was updated successfully, but these errors were encountered: