242 questions
0
votes
0
answers
85
views
Borders of vertically merged cells appear correctly only in preview, not in rendered PDF
I am generating a PDF from R Markdown using flextable.
When I vertically merge cells, the borders of the merged cells appear correctly in the preview, but they do not appear correctly in the rendered ...
2
votes
1
answer
561
views
Farsi/persian/arabic text not showing in Rmarkdown officedown/flextable when knitting to MS word
I'm using rmarkdown and also two useful packages (officedown and flextable) to produce an MS word document. However, when I write in other languages or change the header label of tables (using ...
1
vote
1
answer
1k
views
Table title on a different page when using a flextable object in a officedown document
I'm trying to put together a document where a "Tables" section will be found at the end of it. There, all the tables that I will have cited throughout the document will be shown.
My problem ...
1
vote
1
answer
432
views
How to use `fp_text_default ` function in flextable package
I see there's a function in flextable package, namely fp_text_default. In help files to this function the only example you can find is
fp_text_default(bold = TRUE)
I was wondering if I can use this ...
0
votes
1
answer
1k
views
Rmarkdown PDF tables, merge cells and return to line
I am trying to integrate a survey in my pdf report, the survey is composed of three columns; one with the code, the second with the question and the third with the possible answers.
I would like to ...
2
votes
1
answer
1k
views
Text wrapping in .docx output of flextable in r-markdown
I have a r-markdown doc that has a flextable that spreads over multiple pages and on my own computer it knits to docx. perfectly. However, now it is on the server and it automated the knitted document ...
2
votes
1
answer
656
views
Flextable label not created in rmarkdown
I am using flextable to produce tables for a pdf document rendered with rmarkdwown. I want to cross-reference the tables, but they do not produce the label needed for the cross reference to work.
My ...
0
votes
2
answers
463
views
Flextable table links not linking to my tables
I have generated tables in docx using Rmarkdown (Output: word_document), with captions and links to the tables. For some reason clicking on the links takes me to the top of my word file and not to the ...
1
vote
2
answers
1k
views
How to export information from R objects as png?
I want to summarize information about my data and export it as a png file. I've experimented with packages such as pander and flextable, but currently can't achieve my goal. Maybe there's a way to get ...
2
votes
1
answer
679
views
looping flextable from a list does not create tables in Word
I have series of tables I created from a list. I'm using flextable() in R-Markdown to output them to a Word document and I'd like to separate them into one table per page. The workaround from this ...
1
vote
0
answers
331
views
Using officer in R to hyperlink to another slide within a flextable cell
Using officer in R, I've used ph_slidelink() to hyperlink a text box to another slide in the presentation, and I've used compose() and hyperlink_text() to hyperlink a cell within a flextable. My ...
0
votes
1
answer
181
views
Flextable footer: how to show value between quotes
I am creating an flextable to show some results. To clarify some of the data, and add some data, in the flextable I want to put this in the footer.
I stored the p.value like:
pset1 <- chisq.test(...
0
votes
0
answers
401
views
Rmd to word with flex table - need to increase margins of ONLY the table in the word output
I am building a routine report in Rmd that is outputted to word.
I have created a reference document to determine all the fonts and styles.
I am using flextable to create the table in this report.
The ...
8
votes
2
answers
5k
views
Formatting a numeric column as percent in flextable package in R
For example I am using iris data:
library(flextable)
library(officer)
library(magrittr)
ft_test <- head(iris) %>% flextable() %>%
colformat_num(j = c("Sepal.Length", "Sepal....
0
votes
0
answers
622
views
Flextable - Change amount of decimals based on rows
So I am trying to create an flextable in Rstudio. The data in this flextable contains a lot of converted and calculated data which makes it slightly difficult to reproduce, so I hope the original code ...