Questions tagged [huxtable]
44 questions
4
votes
1 answer
Is it possible to make a huxtable html output hoverable?
Specifically, this works for tables produced with kableExtra which creates a very appealing effect. I was wondering if anyone has an idea how this may be doable with huxtable.
Here's an example Rmd to get a glimpse at what I mean. I'd like the…

Patrick
- 742
- 7
- 19
4
votes
4 answers
Scientific formats, subscripts and superscripts in RMarkdown table (docx output)
Let's say I have the following rmd:
---
title: "Table won't work"
author: "Exhausted student"
date: "2022/01/28"
output:
bookdown::word_document2
---
```{r table, echo=F, warning=F, message=F}
library(tidyverse)
a <- tibble(
constants = c("c",…

ErwinTATP
- 162
- 6
3
votes
1 answer
How do I automatically split huxtables across multiple pages?
Goal:
In the Shiny app I'm working on, the users can upload a .csv file, which is converted to a huxtable, gets formatted and can finally be downloaded as a .pdf. Since the users can upload their own dataset, I don't know in advance how many rows it…

Domi
- 89
- 5
3
votes
2 answers
Rmarkdown knit pdf - getting underlined text instead of italic using *italic* (huxtable issue?)
Rmarkdown text (between chunks) when formated italic using * * knits to pdf underlined and not italic format when I print huxtable.
Here is my example:
```
---
title: ""
author: " jd
" date: " `r…
" date: "

Edlenil
- 79
- 4
2
votes
1 answer
Is it possible to fix the head for a long html huxtable?
This works for tables produced with kableExtra which is useful when inspecting long tables. I was wondering if anyone has an idea how this may be doable with huxtable.
Here's an example Rmd to get an idea of what I mean. I'd like the huxtable header…

Patrick
- 742
- 7
- 19
2
votes
0 answers
Huxtable appears to be incompatible with multicol latex package
I tried the following rmarkdown code, but with no success:
---
title:
output:
pdf_document:
latex_engine: pdflatex
header-includes:
\usepackage{multicol}
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo =…

PaulS
- 21,159
- 2
- 9
- 26
2
votes
2 answers
display / print huxtable in Rstudio / R plot or viewer window; not to knit a markdown document?
In an a collaborative work I'm required to use huxtable to visualize some output. So far I have not managed the very basic first step to display a huxtable properly in the Rstudio plot or viewer window.
I'm used to whatever kind of package (ggplot…

MsGISRocker
- 588
- 4
- 21
2
votes
0 answers
Wide huxtable table in rmarkdown portrait pdf with page rotated to landscape
Is there a way to place a wide table in an rmarkdown pdf document to take advantage of the additional width of a page in landscape orientation?
I have found the following related questions on Stackoverflow which are helpful but do not address the…

Peter
- 11,500
- 5
- 21
- 31
1
vote
1 answer
Given a flextable without a header how can I add a header?
If I have a flextable without a header, how can I add one? In the example below I am setting the scenario up artificially. i.e. I would like to turn flexiris_without_head back into flexiris_with_head.
library(flextable) # version…

Patrick
- 742
- 7
- 19
1
vote
1 answer
How can I make column widths in huxtable rtf output match widths of html output?
It seems like html output in huxtable has some kind of automatic greedy column width setting which creates an output that is appealing to me. The rtf output makes all columns equal width, which I find less appealing. In the example below the…

Patrick
- 742
- 7
- 19
1
vote
1 answer
Setting row height in huxtable
I'm using the expss package to generate tables and then passing them to huxtable This works fine but height function does not seem to work. Any insights? This occurs regardless of using a theme or exporting to HTML or Word.
t<-mpg %>%…

Ben
- 1,113
- 10
- 26
1
vote
0 answers
Tinytex support package expl3 too old
I'm trying to generate PDF reports with RMarkdown and Huxtable, and am using TinyTex latex distribution. I am receiving the following error message when trying to render a huxtable object to pdf:
! Package siunitx Error: Support package expl3 too…

Robert
- 11
- 1
1
vote
2 answers
How can I save a huxtable as png file in R
The huxtable package comes with quick_* functions to save outputs such as html (via quick_html), pdf (via quick_pdf) etc.
However, there seems to be no option to directly save to an imgage (e.g. png).

Patrick
- 742
- 7
- 19
1
vote
1 answer
Why is table numbering not working with blogdown::html_page, but working with bookdown::html_document2?
I have a report written in R Markdown that is supposed to use numbered sections, figures, and tables and cross-references to them: https://github.com/joshuaborn/NSFG/blob/master/reports/use-of-contraception-in-the-united-states-2017-2019.Rmd
When I…

Joshua Born
- 220
- 1
- 8
1
vote
1 answer
how to reduce line spacing in huxtable/huxreg
I am working with huxreg/huxtable in RMarkdown documents. As I have a very long regression table, so I need to reduce font size / line spacing to fit it into one page. I can control font_size, however, I do not find a possibility to reduce line…

Tabasco
- 131
- 1
- 1
- 5