829 questions
1 vote
2 answers
100 views
Remove column name row in kable while using kable_styling
I'm trying to make a table without row names using kable, and I'm having an issue suppressing the line where column names go, but only if I'm using kable_styling (which I'm using to left-align the ...
3 votes
1 answer
123 views
How to remove automatic table labels when using kable and bookdown for HTML
I am creating a bookdown project which includes kable tables. The final output is HTML. However, I do not want the automatic "Table 1:" labels and instead want only my custom caption I ...
1 vote
1 answer
51 views
How to create links in rmarkdown kable when the column is collapse
I created a data.frame that I would like to show as a table: df <- data.frame(A=c("a","b"), B=c("[link](http://stackoverflow.com)","[link](http://...
1 vote
1 answer
175 views
How to print headers on every page when printing a long table using gt
Trying to print a long table that span multiple pages using gt, however, the tab_options(latex.use_longtable = TRUE, page.header.use_tbl_headings = TRUE) function in gt is being ignored and it does ...
1 vote
1 answer
52 views
How do I label "Averages" row without wrecking my kable()?
I've got a table I'm fairly happy with. I've added a row of column averages, and I'd like add the word "Averages" to the left of it. I've tried adding a column (labeled "") but to ...
0 votes
1 answer
546 views
Using latex itemize within R kable
I'm trying to create bulleted lists within the cells of a pdf table using RMarkdown. It seems like this should work: --- title: "Untitled" output: pdf_document --- ```{r} tibble::tibble( ...
1 vote
0 answers
44 views
Why is the footer width limited by the width of the first column in kableExtra? [duplicate]
I am rendering a kable in Quarto, but the footnote seems to follow the width of the first column, which leads to two issues: The first column becomes unnecessarily wide, and The footnote gets broken ...
1 vote
1 answer
78 views
kableExtra html table: pack_rows() ignores
I am rendering an html document in Quarto (engine: knitr). I have added some trailing whitespaces in a kableExtra table using " ". However, as soon as I add pack_rows() to the mix, &...
1 vote
1 answer
112 views
Why is MathJax not rendered within my kableExtra table in a Quarto document?
I'm trying to generate properly a table with variable and associated p-value with kable package in a quarto document. I use kable and kableExtra packages. My yaml header is the following one: --- ...
1 vote
1 answer
46 views
Misalignment in Multicol enviroment (Knitr)
I'm using Knitr to generate a PDF report where each page is structured using the multicol environment. The layout consists of two columns: The first column contains a table. The second column contains ...
3 votes
1 answer
101 views
Knitr not printining the plots in a loop
I'm using Knitr to generate a PDF report, where each page is dynamically created in a loop, displaying plots and tables side by side. The approach works well for tables, but the plots fail to appear ...
0 votes
2 answers
91 views
Problem with formatting table with LaTex format
I have a table with squirrel sightings, where I have species, year, total abundance and mean_abundance, like below: library(tibble) set.seed(42) abundance_sum <- tibble( Species = sample(c(&...
1 vote
1 answer
41 views
Place a table of knitr at the top of the next page of pdf while using longtable=T
I want to place a table using table1() function with knitr()and because the table has long rows, I am using longtable=T within kable(). Because I'm using longtable=T, the table starts right after the ...
1 vote
0 answers
436 views
Tables for PDF output in Quarto
I'm creating 8 different PDF reports for 8 different programs for some of the variables pictured below. I've already figured out how to use parameterized reporting in Quarto to output different PDF ...
0 votes
0 answers
66 views
Printing multiples table and plots side by side with multicol in PDF Knit loop
I’m working on an R Markdown project and I’m having trouble getting my plots to show up where I want them in the document. I need to create a loop that prints 3 tables (using kableExtra) and 3 plots (...