-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
[Feature request] Cmidrules and Multicolumn for kable #2136
Comments
For reference @yihui follow-up from https://community.rstudio.com/t/how-can-i-prevent-r-markdown-from-escaping-characters-in-custom-blocks/138890/12 |
BTW the way, you get the error because your dataframe is 3 columns, and your |
Yeah that's the problem: I used the |
In my pull request, I added support for cmidrules by adding an option called |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Suppose I want to make the following table:
This table has a cmidrule from 2-3 and it is multi-columned.
Here is how I can make it using LaTeX code:
Making this table using kable is impossible because
\multicolumn
commandI tried to recreate it in kable with this code:
It gave me this error:
When I made the table in LaTeX, the header row only needed to be two columns because I used the
\multicolumn{2}
command anyways.But all of the other rows were three columns.
In the code chunk above, I set
\\multicolumn
in thecol.name
, butcol.name
expects three arguments.Also, I'm not sure where I should add
\\cmidrule
.The text was updated successfully, but these errors were encountered: