insightsengineering / insightsengineering/pager
[Bug]: tables with nanoplot do not render in docx
- Dominant language
- R
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
### What happened?
```
library(crane)
res <- trial |>
select(age, marker, grade, response) |>
tbl_uvregression(
y = response,
method = glm,
method.args = list(family = binomial),
exponentiate = TRUE,
hide_n = TRUE
) |>
modify_column_merge(
pattern = "{estimate} (95% CI {ci}; {p.value})",
rows = !is.na(estimate)
) |>
modify_header(estimate = "**Odds Ratio**") |>
add_forest(table_engine = "gt")
pager::save_docx(res, "result.docx")
```
this result in a un-openable docx file. Note that `pager::save_html(res, "result.html")` works fine.
### Relevant log output
_No response_
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct.
### Contribution Guidelines
- [x] I agree to follow this project's Contribution Guidelines.
### Security Policy
- [x] I agree to follow this project's Security Policy.
Contributor guide
Assessment
This issue has not been assessed yet.