Closed benedikt257 closed 4 years ago
Confirmed on my system. The HTML shows borders round the top merged cell. The PDF shows no right border around that cell, instead a border in the middle of the last two rows (to the right of "raspberry" and "plum").
This also happens if you use the slightly more "correct":
jams_df %>%
as_huxtable(add_colnames = FALSE) %>%
set_all_border_colors("#003f94") %>%
set_all_borders(0) %>%
set_all_padding(value = 1) %>%
merge_cells(1:2, 1:2) %>%
set_all_borders(1, 1, 1) %>%
quick_pdf(file = "test.pdf")
Could you try github master and see if the fix works for you?
Yes, excellent. That fixes the issue. Many thanks!
... Thought I leave this here as it seems like a related problem, please tell me if you'd prefer if I opened a new issue...
I run into a (possibly) similar problem when using set_outer_borders()
, e.g.,
jams_df %>%
as_huxtable(add_colnames = FALSE) %>%
set_all_border_colors("#003f94") %>%
set_all_borders(0) %>%
set_all_padding(value = 1) %>%
merge_cells(1:2, 1:2) %>%
set_outer_borders(2) %>%
quick_pdf(file = "test.pdf")
Is this with github latest?
It was with the latest github version I installed yesterday. After installing the newest version today, the error is resolved for PDF output, but persists for HTML output.
Hi, I think we might have hit on a bug in the package. Please find the bug report below - happy to help with any additional information! Cheers Benedikt
Describe the bug When selectively setting borders on a huxtable with merged cells, the pdf/LaTeX export places the borders in the wrong places.
Minimal Reproducible Example
Expected behavior The above example generates an html and a pdf. The html output is as expected, with a border around the merged cell at the top of the table. The pdf output shows the misplaced borders.
System details
RStudio: Version 1.2.1335 © 2009-2019 RStudio, Inc. Build 1379 (f1ac3452)