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
collapse_rows not working as expected? #595
Comments
same here. i suspect this is due to |
@SPFL-Analysis @unDocUMeantIt Fixed now. Thank you for reporting and making that suggestion! |
Same above. (v. 1.3.4) |
i'm happy to confirm that the commit is fixing the issue.
until there's a new official release of the package, you can install the fixed version directly from github: devtools::install_github(repo="haozhu233/kableExtra", ref="a6af5c0")
|
It is the same display as the document and is the ideal display. |
Sorry. If I use the table below,
It appears llike below.
C1=C 's C2 (C3=12) and C1=E 's C2 (C3=18) not appeared. |
wrapping the whole thing in
gives wrapping just the dataframe:
which gives: |
i was refering to the source code of |
It isn't working for me either. Using rvest 1.0 and kableextra 1.3.4. I've been using it for a blogdown post and it previously worked but has now ceased to do anything. |
I was having the same issue, but you still need the development version as of 2021-08-26. The version of {kableExtra} on CRAN does not have the a6af5c0 commit yet. See my comment on #624 for more details. @unDocUMeantIt mentioned this right after the commit was implemented:
Looks like the CRAN version will have to be > 1.3.4 to have this fix included. |
I installed 1.3.4.9000 from GitHub. The example from dt <- data.frame(a = c(1, 1, 2, 2), b = c("a", "a", "a", "b"))
(x <- knitr::kable(dt, format = "markdown"))
collapse_rows(x)
In addition: Warning message:
In collapse_rows(x) :
Please specify format in kable. kableExtra can customize either HTML or LaTeX outputs. See https://haozhu233.github.io/kableExtra/ for details. I'm expecting three rows of output, like:
|
a6af5c0 with rvest |
At @dholstius, collapse_rows doesn't work on "markdown" format (see https://github.com/haozhu233/kableExtra/blob/master/R/collapse_rows.R#L56-L61) so you just get your input back @Robsteranium Apparently the CRAN release is quite old, the master branch includes that commit and works as well (see #706 ) |
This is still not resolved. Is the package still maintained? |
Hello, I've been using this package for a while and all was great but today I updated to rvest v1.0.0 and it seems to have stopped the collapse_rows() function working as it did, please see example below.
For me this no longer collapses the first 2 rows of col1 with the "a" values.
Any help would be much appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: