insightsengineering / insightsengineering/pager

[Bug]: tables with nanoplot do not render in docx

Open
#28 0 comments 0 reactions 2 assignees Claimed by @Melkiades View on GitHub
bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.