You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to create tables in the style that Jira is using. Jira uses a slightly different version of the knitr::kable(format = "pipe") output. Instead of having a header line separated by a data-void line, two consecutive pipe symbols are used.
# Hand-crafted table from BOD data
|| Time|| demand||
| 1| 8.3|
| 2| 10.3|
| 3| 19.0|
| 4| 16.0|
| 5| 15.6|
| 7| 19.8|
See also https://stackoverflow.com/questions/68308461 for an example. This links to a SO question I asked.
Since then I looked into table.R in order to find out whether I could use additional parameters for a call to kable().
But it looks like this is currently impossible. Then I wanted to at least remove the separator line between header and table body using sep.row from kable_mark() to spare me the removal later. This is what I tried:
data("BOD")
y <- head(BOD)
knitr::kable(y, format = "pipe", sep.row = c(NA, NA, NA))
> Error in if (sep.col == "|") for (j in seq_len(ncol(x))) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In if (sep.col == "|") for (j in seq_len(ncol(x))) { :
the condition has length > 1 and only the first element will be used
The parameter sep.row is probably not meant for use like this. But it would really help me to be able to fine-tune the table output. Jira might be my itch but there may be other formats that cannot currently created as well. I hope that I did not overlook a solution already present.
In summary:
the option sep.row would be nice, and
a new option to change the separator for the first line would be great ;-)
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('knitr'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/knitr').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
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.
I would like to be able to create tables in the style that Jira is using. Jira uses a slightly different version of the
knitr::kable(format = "pipe")
output. Instead of having a header line separated by a data-void line, two consecutive pipe symbols are used.See also https://stackoverflow.com/questions/68308461 for an example. This links to a SO question I asked.
Since then I looked into table.R in order to find out whether I could use additional parameters for a call to
kable()
.But it looks like this is currently impossible. Then I wanted to at least remove the separator line between header and table body using
sep.row
fromkable_mark()
to spare me the removal later. This is what I tried:The parameter
sep.row
is probably not meant for use like this. But it would really help me to be able to fine-tune the table output. Jira might be my itch but there may be other formats that cannot currently created as well. I hope that I did not overlook a solution already present.In summary:
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: