Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [huxtable]

The tag has no usage guidance.

huxtable
0 votes
1 answer
45 views

How do I make sure my huxtable list maintains formatting when writing to docx in R/Quarto?

I am using huxtable in Quarto in R for a pretty complicated table, and I need to make sure I have running headers when I knit to word. The headers will have their own formatting that needs to be ...
Joann's user avatar
  • 43
0 votes
1 answer
53 views

Converting broom outputs of multiple models into regression tables

For various reasons, I only have access to objects model_coeffs and model_summary below. These form broom::tidy() and broom::glance() objects respectively. In other words, I do not have access to the ...
allen.joseph's user avatar
0 votes
0 answers
44 views

In Huxtable R package, condense row height (or table height) when fonts are small

Similar to this question which was not answered... I am using the Huxtable package in R to render tables in Quarto. You can use the set_all_padding() and set_row_height() functions to condense the ...
mvanaman's user avatar
  • 322
0 votes
0 answers
30 views

Issue of getting empty cells in huxtable but not in expss

I have been producing some tables for a report and found that huxtable provided me a good option to get tables styled and auto-captioned in rmarkdown, even though I personally like expss table formats....
Nadeem's user avatar
  • 1
0 votes
0 answers
78 views

huxtable format number with formatC

I want to create table with library huxtable where number will be in format as: input= 10000000; output = 1000.000,0 For example: library(data.table) library(huxtable) a=data.table(id="a",...
user8795501's user avatar
0 votes
0 answers
32 views

Multi line equation in a huxtable cell

This is about adding equations to huxtable table cells for pdf output using Quarto/RMarkdown. I'm able to put in-line latex equations in huxtable cells, and jerry-rigged a 2-line equation using \frac{...
Dr Dave's user avatar
  • 491
0 votes
0 answers
25 views

Some Huxtable functions don't seem to work for HTML output

I'm learning to work with huxtables, some functions work fine when I set output: pdf_document but I can't get them to work work when I set the YAML settings to output: html_document jams <- hux( ...
Papa Analytica's user avatar
0 votes
0 answers
49 views

Problem with borders when converting huxtable into flextable

I want to convert a huxtable into a flextable and for this I use huxtable::as_flextable. Know I need to set some borders (also completely on the right and on the left). Everything works fine but there ...
TobiSonne's user avatar
  • 1,086
0 votes
0 answers
82 views

How to change the border style of a huxtable?

I am trying to set the right border of col = 1 of my huxtable. I can get the border to appear, but it remains "dashed" despite my attempts to change it to "solid". Example: library(...
Reid's user avatar
  • 25
1 vote
1 answer
330 views

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. ...
Patrick's user avatar
  • 1,247
-1 votes
1 answer
81 views

How can I have a line Break in the column headings in R huxreg when exporting to latex?

Here is a minimal example. library(huxtable) model1 <- lm(mpg ~ cyl + disp, data = mtcars) huxreg1<-huxreg("This is a tool long title \n for one row"= model1) print_latex(huxreg1) ...
SKupek's user avatar
  • 83
0 votes
0 answers
40 views

Huxtable automatically removes 0 in the cell (for example "H01" to "H1")

How could I keep the 0? In a for loop, I have # the_hux is some huxtable by as_hux_table() the_hux[1, 2] <- i print(i) print(the_hux[1, 2]) and this is the output: [1] "H01" ...
yyyyp's user avatar
  • 1
1 vote
1 answer
86 views

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 ...
Patrick's user avatar
  • 1,247
1 vote
1 answer
150 views

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 ...
Ben's user avatar
  • 1,140
2 votes
2 answers
88 views

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 ...
Patrick's user avatar
  • 1,247

15 30 50 per page