Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
70 views

Based on the previous solution, Does the gtsummary package have a function that allows the exported table to include footnotes on every page? I successfully implemented pagination for the RTF output, ...
xiecheng gu's user avatar
0 votes
0 answers
37 views

In this example, I attempted to use huxtable to output gtsummary objects to TXT format. However, the following issues seem to arise: The table is centered, and the output includes column names such as ...
xiecheng gu's user avatar
-1 votes
1 answer
138 views

After something like: library(tidyverse) df <- tibble(a=c(1,2,3), b=c(4,5,6)) tbl <- df %>% flextable::flextable() Is there a way to get back df from tbl?
robertspierre's user avatar
1 vote
1 answer
61 views

As discussed in the previous question, it seems difficult for gtsummary to include the same footnote on every page when exporting RTF using flextable; the footnote can only appear at the end of the ...
xiecheng gu's user avatar
2 votes
1 answer
112 views

I have two main questions here. The first is how to control the alignment of the title specified in modify_caption so that it is displayed left-aligned when exporting to RTF using flextable/officer. ...
xiecheng gu's user avatar
0 votes
1 answer
95 views

I am using the clinify package with flextable to generate a docx file. My issue is lining up the table body with the title footnotes. I tried using: set_table_properties(width = 1, layout = "...
Ranjan Karmakar's user avatar
0 votes
1 answer
71 views

When adding borders to a flextable manually via flextable::border() then these are visible in html display. However, when exporting to either one of docx, rtf or pptx then only the bottom one of the ...
Patrick's user avatar
  • 1,783
1 vote
1 answer
60 views

Consider the following example: library(modelsummary) library(flextable) library(officer) modlm <- lm(gear ~ mpg + wt, data = mtcars) res <- modelsummary( modlm, stars = TRUE, out = "...
robertspierre's user avatar
0 votes
0 answers
45 views

If I run the code below, I get an rtf that does not seem to use the entire page width when opened in MS Word. flextable::flextable(head(iris)) |> flextable::save_as_rtf(path = "test1.rtf&...
Patrick's user avatar
  • 1,783
2 votes
1 answer
96 views

I am trying to convert gtsummary to flextable using as_flex_table. It works by default passing on information from table body. Example code is provided below: # Load packages for program execution pkg....
Ranjan Karmakar's user avatar
1 vote
0 answers
62 views

I'm having trouble paginating a flextable table when publishing it in an RMarkdown document. The table has some merged columns. In the reproducible example, this is column 1. In the sekwencja variable,...
wacekk's user avatar
  • 23
4 votes
1 answer
99 views

I am trying to mimic hoverablity effect like tables produced with kableExtra which creates a very appealing effect and was wondering if anyone has an idea how this may be doable with flextable. Here's ...
Patrick's user avatar
  • 1,783
3 votes
1 answer
94 views

I am trying to have sticky headers like tables produced with kableExtra which is useful when inspecting long tables and was wondering if anyone has an idea how this may be doable with flextable. Here'...
Patrick's user avatar
  • 1,783
2 votes
2 answers
91 views

Please help find a solution that allows one to merge multiple columns respective to a grouping column. In the reproducible example I want to merge columns v2 and v3 within the respective groups (a,b,c)...
DAY's user avatar
  • 143
0 votes
0 answers
67 views

The function as_flex_table() is causing my Word files to be corrupted when I knit to Word using R Markdown, despite the code running fine within R Studio. The following code knits to Word with no ...
lindre3000's user avatar
1 vote
1 answer
59 views

In my flextable code I want to add a header row with colwiths > 1. When saving the flextable as an image, the right border gets double. Is it possible that this is a bug, or am I doing something ...
Claudia Niebisch's user avatar
2 votes
2 answers
156 views

I'm looking for a way to apply autofit() only to columns that are too small. This is my current method but I'm looking for a better way to do it: library(flextable) library(magrittr) ### Ex. Tbls ...
Aaron Rose's user avatar
1 vote
1 answer
60 views

I want to produce a pptx slide like this: library(ggplot2) library(grid) library(cowplot) library(dplyr) # remotes::install_github("davidgohel/flextable") library(flextable) gg1 <-...
Armando González Díaz's user avatar
0 votes
0 answers
155 views

I am producing a corrupted .docx when including flextable in my workflow. The below examples have previously worked. I updated most packages and environments (VS code) and pandoc. I cannot quite ...
Brian Brummer's user avatar
0 votes
0 answers
66 views

I've extensively worked with older versions of the officer and flextable packages in R to create Word documents with tables. To achieve custom table formatting beyond the packages' default ...
TobiSonne's user avatar
  • 1,117
1 vote
1 answer
86 views

I'm trying to deploy an R Shiny app using GitLab CI/CD and publish it to Posit Connect. My goal is simple—I just want my GitLab pipeline to run my Shiny app (app.R) and deploy it. I have very limited ...
Joe the Second's user avatar
2 votes
1 answer
75 views

When rendering a flextable in a papaja document the following error is produced: 55 words in text body 0 words in reference section tlmgr: package repository https://ftp.snt.utwente.nl/pub/software/...
Ingmar Visser's user avatar
1 vote
1 answer
107 views

I'm using tbl_stack to combine two tables and I have a group header for each table. It looks fine when I view the table in R - however, when I export the document to .docx format, flextable is adding ...
John Ryan's user avatar
  • 383
0 votes
1 answer
103 views

I have the following rmarkdown document in R that generates a flextable object. My problem is that the two columns 4 and 5 the header names do not show in full and the last letters are hidden. --- ...
Homer Jay Simpson's user avatar
0 votes
0 answers
69 views

I have a data frame in R called data and looks like this: library(tibble) library(flextable) library(dplyr) # Create a tibble data <- tibble( country = c("USA", "Canada", &...
Homer Jay Simpson's user avatar
1 vote
1 answer
109 views

Does anyone know if it is possible to loop through a list that varies in length of arguments to input into a custom function that outputs a flextable object in a word document using R Markdown? This ...
Cyrus Tadjiki's user avatar
0 votes
1 answer
83 views

I have tibble (data frame) in R called table_factors that at the end will be a flextable. I want to conditionally color the columns Results based on multiple and complex condition. For example the ...
Homer Jay Simpson's user avatar
0 votes
0 answers
122 views

I using flextable to produce tables in html format. I have a table with long text in some cells and so would like to increase the column width, but width() and autofit() only increase column widths up ...
Charlie Cornwallis's user avatar
0 votes
1 answer
133 views

I have a tibble in R that has text (string) in the 3rd column that its cells has character and number.I want the number only to be colored but the text to remain black. Is that possible to do that in ...
Homer Jay Simpson's user avatar
1 vote
2 answers
301 views

In Flextable, I'm trying to change the color of the text in a cell if it detects a "+" (green) or "-" (red). The help guide is really clear on how to do this for numeric data, but ...
J.Sabree's user avatar
  • 2,596
1 vote
0 answers
120 views

I'm encountering an issue with the flextable package in R. I have a data frame (elements_table) with 12 rows. However, when I create a flextable using as_flextable(elements_table), the resulting table ...
Shannon's user avatar
  • 11
1 vote
1 answer
75 views

I have a data frame in R called df : library(tidyverse) library(officer) library(flextable) df = df%>% arrange( Category, factor(Favor, levels = c("Bad", "Mediocre", ...
Homer Jay Simpson's user avatar
3 votes
1 answer
85 views

I'm having trouble getting ggplot2 to work with Arabic and Hindi when flextable is loaded. Here's a first run that also includes English and Russian to demonstrate that everything works without ...
bcarothers's user avatar
1 vote
3 answers
87 views

Is there a way to include set_caption in a flextable object when you are adding it to a ggplot plot? In the following example, the caption "Table of iris" is dropped using flextable::...
user63230's user avatar
  • 4,911
2 votes
1 answer
159 views

I am having trouble getting my captions for figures and tables having consistent formatting when knitting a Rmd file to HTML output from the Bookdown package. I have tried applying different methods ...
BEVAN's user avatar
  • 747
0 votes
1 answer
52 views

I use loops to render .docx reports from an .rmd template that includes flextable tables with conditional formatting. I finally figured out how parallelization in R works (kind of), and I tried to ...
Samuel Reichler's user avatar
2 votes
1 answer
194 views

I am pretty new to R and trying to format a flextable. I would like to remove the second level header altogether (blue arrow). I would like to remove the second level of the header. I've created the ...
malilka's user avatar
  • 31
1 vote
1 answer
74 views

How can I take a multi-header flextable and give different background, text, or other properties to different lines of the header? For example, say I have this table: library(tidyverse) library(...
Canyen Heimuli's user avatar
0 votes
1 answer
390 views

I want to create a PDF file with several instances of two side-by-side flextables. For this, I want to be able to use a loop, since I want all different flextables to have different input, provided ...
Yvlara's user avatar
  • 45
3 votes
0 answers
112 views

I would like to display this in a cell of a flextable: I'm working in an RMarkdown document that will Knit to Word. From my research, equations in flextables can either be rendered by writing in ...
emudrak's user avatar
  • 1,036
1 vote
2 answers
116 views

I want to show a crosstab of two variables in a flextable, but only show row/column/table percentages, not counts. For example, if I run the collowing code library(flextable) proc_freq( mtcars, &...
Agnar's user avatar
  • 85
0 votes
0 answers
165 views

I am encountering the following problem: Whenever I use Flextable to display my data, the Variables column always comes on the right even though in the original dataset it is on the left. I even tried ...
Vil Vakhitov's user avatar
1 vote
1 answer
161 views

I am making a descriptive table of categorical variables. gtsummary::tbl_summary combined with as_flextable and my own flextable adjustments gives me the APA-formatted table I want, with frequencies ...
AndreasV's user avatar
1 vote
0 answers
102 views

I tried to create a flextable, but it would always stop with an error. Here an example from the flextable documentation (labelizor help page): library(flextable) z <- summarizor( x = CO2[-c(1, ...
Andreas's user avatar
  • 23
0 votes
1 answer
55 views

Despite using (what I believe to be) sufficient code to remove all percentages, they are still showing up in my flextable. If only attaining frequency for 1 variable, does the package simply require ...
MLBPhillies26's user avatar
1 vote
0 answers
78 views

I am trying to generate a Word document with R using the officedown::rdocx_document output format. When I use the standard output: word_document option, I can easily control the size of images in the ...
zhiwei li's user avatar
  • 1,731
-1 votes
1 answer
61 views

I am piping data into the following in the hope to put a blue table around my data where am I going wrong? |> flextable::flextable() |> colors(color = 'blue',part = "body") I ...
user2822467's user avatar
0 votes
1 answer
397 views

I love flextable and so I use it in a lot of projects. After setup of a new Laptop where I installed R 4.4.1 and RStudio 2024.04.2 I had to see that the flextable library (0.9.6) produces an error ...
Ron's user avatar
  • 403
3 votes
2 answers
289 views

I have a flextable that I am trying to conditionally format based on a variable that will not be shown in the output. Here are some dummy data: library(tidyverse) library(flextable) set.seed(12345) #...
jordan_oplante's user avatar
1 vote
1 answer
138 views

I have certain words in my flextable footer lines that I would like to be a different color. Here is an example using the example iris data. library(flextable) ft_1 <- flextable(head(iris)) ft_1 &...
Sarah's user avatar
  • 463

1
2 3 4 5
8