-
Notifications
You must be signed in to change notification settings - Fork 91
Description
example.qmd
---
title: "example"
number-sections: true
format:
docx:
toc: false
---
```{r}
suppressPackageStartupMessages({
library(dplyr)
library(flextable)
library(officer)
library(officedown)
})
```
example
```{r}
tibble(
x = c("A","A","B","B"), y = "text", y_url = "https://example.com"
) %>%
flextable(col_keys = c("x", "y")) %>%
compose(
j = "y",
value = as_paragraph(hyperlink_text(x = y, url = y_url))
) %>%
merge_v(j = "x") %>%
border_inner() %>%
autofit()
```
quarto render example.qmd
When looking at the output the hyperlinks appear to have been generated but their urls have empty values. When opening the word document you get the hold crtl and click tooltip when hovering over the link but nothing happens when it is clicked. When you edit the hyperlink you can see that the text field is populated but link field is empty.
This appears to be similar to #168, so I tried loading {officedown} and {officer} to see if this fixed the problem as it did in the previous issue - this had no effect.
sessionInfo()
R version 4.5.2 (2025-10-31)
Platform: x86_64-pc-linux-gnu
Running under: NixOS 25.11 (Xantusia)
Matrix products: default
BLAS/LAPACK: /nix/store/yz9ifl0wifs6lzjcal1s4b00dvdaa3j4-blas-3/lib/libblas.so.3; LAPACK version 3.12.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/London
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] officedown_0.4.1 officer_0.7.3 flextable_0.9.10 dplyr_1.1.4
loaded via a namespace (and not attached):
[1] jsonlite_2.0.0 compiler_4.5.2 zip_2.3.3
[4] tidyselect_1.2.1 Rcpp_1.1.1 xml2_1.5.2
[7] tidyr_1.3.2 fontquiver_0.2.1 systemfonts_1.3.1
[10] textshaping_1.0.4 uuid_1.2-2 yaml_2.3.12
[13] fastmap_1.2.0 R6_2.6.1 gdtools_0.4.4
[16] generics_0.1.4 knitr_1.51 tibble_3.3.1
[19] openssl_2.3.4 pillar_1.11.1 rvg_0.4.0
[22] rlang_1.1.7 cachem_1.1.0 xfun_0.56
[25] memoise_2.0.1 cli_3.6.5 magrittr_2.0.4
[28] digest_0.6.39 grid_4.5.2 askpass_1.2.1
[31] lifecycle_1.0.5 vctrs_0.7.1 evaluate_1.0.5
[34] glue_1.8.0 data.table_1.18.2.1 fontLiberation_0.1.0
[37] ragg_1.5.0 fontBitstreamVera_0.1.1 rmarkdown_2.30
[40] purrr_1.2.1 tools_4.5.2 pkgconfig_2.0.3
[43] htmltools_0.5.9
When submitting a new issue:
-
Provide the code that is producing the error, it has to be a minimal reproducible example.
Stackoverflow is providing good explanations about it: https://stackoverflow.com/help/mcve. You can use packagereprexto help you: http://reprex.tidyverse.org/. The most popular R stackoverflow question is about the subject: https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example. -
Provide the results of R command
sessionInfo(). It had to be executed after you loaded the packages used by your example. This will let me know what is your version of R and what are the versions of the packages you used in your example. -
Make sure you did checked you had the latest version of the package on CRAN (and on github if issue exists with CRAN version).
-
Make sure you searched in the open and closed issues on the github repository.