You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
flextable() output appears to only show up in resulting .docx outputs if the chunk option is set to echo = TRUE. This is problematic for any sort of writing projects where the code needs to be hidden (e.g., scientific manuscripts). The same code renders acceptably using word_document. The flextable package is extremely useful for use with .docx outputs/collaborators and plays nice with the captioner package for cross-referencing in lieu of using bookdown::word_document2, so would be wonderful if supported (it may be supported already and I am just missing something).
flextable() output appears to only show up in resulting .docx outputs if the chunk option is set to
echo = TRUE
. This is problematic for any sort of writing projects where the code needs to be hidden (e.g., scientific manuscripts). The same code renders acceptably using word_document. Theflextable
package is extremely useful for use with .docx outputs/collaborators and plays nice with thecaptioner
package for cross-referencing in lieu of usingbookdown::word_document2
, so would be wonderful if supported (it may be supported already and I am just missing something).Rmarkdown code
```{r setup}
library(flextable)
```
## Test
The following table won't show up in redoc:
```{r echoF, echo=FALSE}
flextable(head(cars))
```
But the next table will:
```{r echoT, echo=TRUE}
flextable(tail(cars))
```
Output
rendered_redoc.docx
rendered_word_document.docx
Please take a moment and consider if the issue is actually in knitr,
rmarkdown, officer or pandoc. Thanks!
-->
Session Info
Pandoc version (get with rmarkdown::pandoc_version): 2.3.1
RStudio version (if applicable): Test on RStudio Cloud and on RStudio V 1.2.1335
The text was updated successfully, but these errors were encountered: