Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docx error when using label or tbl-cap with quarto and gt #1604

Open
coulmont opened this issue Mar 10, 2024 · 1 comment
Open

docx error when using label or tbl-cap with quarto and gt #1604

coulmont opened this issue Mar 10, 2024 · 1 comment
Assignees

Comments

@coulmont
Copy link

coulmont commented Mar 10, 2024

Description

When using Quarto (with label and tbl-cap options) the document is badly formatted.

Reproducible example

---
title: "Untitled"
format: docx
---
```{r}
#| label: tbl-test
#| tbl-cap: "test"

library(dplyr)
library(gt)
exibble |> gt()
```

Expected result

A table with a title.

Session info

R version 4.3.3 (2024-02-29)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

time zone: Europe/Paris
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] gtsummary_1.7.2 gt_0.10.1 knitr_1.45 lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1
[7] dplyr_1.1.4 purrr_1.0.2 readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 ggplot2_3.5.0
[13] tidyverse_2.0.0

loaded via a namespace (and not attached):
[1] sass_0.4.8 utf8_1.2.4 generics_0.1.3 xml2_1.3.6
[5] stringi_1.8.3 hms_1.1.3 digest_0.6.34 magrittr_2.0.3
[9] grid_4.3.3 timechange_0.3.0 fastmap_1.1.1 broom.helpers_1.14.0
[13] fansi_1.0.6 scales_1.3.0 cli_3.6.2 rlang_1.1.3
[17] crayon_1.5.2 bit64_4.0.5 munsell_0.5.0 commonmark_1.9.1
[21] withr_3.0.0 parallel_4.3.3 tools_4.3.3 tzdb_0.4.0
[25] colorspace_2.1-0 vctrs_0.6.5 R6_2.5.1 lifecycle_1.0.4
[29] bit_4.0.5 vroom_1.6.5 pkgconfig_2.0.3 pillar_1.9.0
[33] gtable_0.3.4 glue_1.7.0 xfun_0.42 tidyselect_1.2.0
[37] rstudioapi_0.15.0 htmltools_0.5.7 compiler_4.3.3 markdown_1.12

@coulmont
Copy link
Author

Sorry my message is a duplicate of quarto-dev/quarto-cli#7151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants