noamross / redoc

[NOTE: Project in suspended animation for now] Reversible Reproducible Documents
https://noamross.github.io/redoc
Other
514 stars 44 forks source link

Tables are not being rendered in output Word document #40

Closed BrunoGrandePhD closed 5 years ago

BrunoGrandePhD commented 5 years ago

Tables are not being rendered in the output Word document when I use the redoc::redoc() format. This issue does not exist when I switch to rmarkdown::word_document() as the format. I've included below my reproducible example and session info. Let me know if you need any further information.

Using redoc

---
output: redoc::redoc
---

# Test Report

```{r, results='asis'}
knitr::kable(iris)
```

test_report.redoc.docx

Using rmarkdown

---
output: rmarkdown::word_document
---

# Test Report

```{r, results='asis'}
knitr::kable(iris)
```

test_report.rmarkdown.docx

Session Info

Click to expand ```r ─ Session info ─────────────────────────────────────────────────────────────────── setting value version R version 3.5.3 (2019-03-11) os macOS Mojave 10.14.4 system x86_64, darwin15.6.0 ui RStudio language (EN) collate en_CA.UTF-8 ctype en_CA.UTF-8 tz America/Vancouver date 2019-05-21 ─ Packages ─────────────────────────────────────────────────────────────────────── package * version date lib source assertthat 0.2.0 2017-04-11 [2] CRAN (R 3.5.0) base64enc 0.1-3 2015-07-28 [2] CRAN (R 3.5.0) cli 1.1.0 2019-03-19 [2] CRAN (R 3.5.3) crayon 1.3.4 2017-09-16 [2] CRAN (R 3.5.0) diffobj 0.2.2.9003 2019-05-16 [1] Github (brodieG/diffobj@5c9b288) digest 0.6.18 2018-10-10 [2] CRAN (R 3.5.0) evaluate 0.13 2019-02-12 [2] standard (@0.13) htmltools 0.3.6 2017-04-28 [2] standard (@0.3.6) httr 1.4.0 2018-12-11 [2] standard (@1.4.0) jsonlite 1.6 2018-12-07 [2] CRAN (R 3.5.0) knitr 1.22 2019-03-08 [2] standard (@1.22) magrittr 1.5 2014-11-22 [2] CRAN (R 3.5.0) mime 0.6 2018-10-05 [2] standard (@0.6) officer 0.3.3 2019-03-01 [1] CRAN (R 3.5.2) R6 2.4.0 2019-02-14 [2] CRAN (R 3.5.2) Rcpp 1.0.0 2018-11-07 [2] CRAN (R 3.5.0) redoc * 0.1.0.9000 2019-05-21 [1] Github (noamross/redoc@5e25471) rlang 0.3.1 2019-01-08 [2] CRAN (R 3.5.2) rmarkdown 1.12 2019-03-14 [1] CRAN (R 3.5.2) rstudioapi 0.9.0 2019-01-09 [2] standard (@0.9.0) sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.0) stringi 1.3.1 2019-02-13 [2] CRAN (R 3.5.2) uuid 0.1-2 2015-07-28 [2] CRAN (R 3.5.0) whoami 1.3.0 2019-03-19 [1] CRAN (R 3.5.2) withr 2.1.2 2018-03-15 [2] CRAN (R 3.5.0) xfun 0.5 2019-02-20 [2] standard (@0.5) xml2 1.2.0 2018-01-24 [2] CRAN (R 3.5.0) yaml 2.2.0 2018-07-25 [2] standard (@2.2.0) zip 2.0.1 2019-03-11 [1] CRAN (R 3.5.2) ``` Pandoc version: Version 2.7.2 RStudio version: Version 1.2.1335
noamross commented 5 years ago

I just pushed a patch, can you please re-install and let me know if this fixes the issue for you?

BrunoGrandePhD commented 5 years ago

The patch fixes this issue for me. Thanks!