Closed astraetech closed 2 years ago
I am sorry I can't find the line 20 to 26 and this example that goes until line 19 works fine. (This is the script that generated the error, we shoud have max 19 lines and the error says there are more)
Hi, sorry, the rmarkdown code got reformatted when i pasted it. I took a screenshot and pasted it here. It's the same code as above but with the line numbers.
The code that causes problems is flextable(mtcars)
when knitting to word.
Update package officer with cran version
This worked, thank you! I updated flextable but didn't update the officer
package.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Hi David,
I used to be able to knit flextable to Word without a problem back in Spring but now knitting to Word throws an error. HTML works fine. I uninstalled and reinstalled flextable but still having the same error. Here is my reprex:
R Markdown
Quitting from lines 20-26 (testing_flextable.Rmd) Error in prop_table(style = NULL, layout = table_layout(type = "fixed"), : unused arguments (word_title = x$properties$word_title, word_description = x$properties$word_description) Calls: ... knit_print.flextable -> flextable_to_rmd -> knit_to_wml -> gen_raw_wml
Execution halted
sessionInfo() R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] flextable_0.8.3 forcats_0.5.2 stringr_1.4.1 dplyr_1.0.99.9000
[5] purrr_0.3.5 readr_2.1.3 tidyr_1.2.1 tibble_3.1.8
[9] ggplot2_3.4.0 tidyverse_1.3.2 modelsummary_1.1.0.9000
loaded via a namespace (and not attached): [1] fs_1.5.2.9000 usethis_2.1.6.9000 lubridate_1.9.0 httr_1.4.4 R.cache_0.16.0
[6] tools_4.2.1 backports_1.4.1-9000 utf8_1.2.2 R6_2.5.1.9000 DBI_1.1.3.9000
[11] colorspace_2.0-3 withr_2.5.0 tidyselect_1.2.0 processx_3.8.0 curl_4.3.3
[16] compiler_4.2.1 cli_3.4.1 rvest_1.0.3 xml2_1.3.3 officer_0.4.4.001
[21] scales_1.2.1 callr_3.7.3 tables_0.9.10 askpass_1.1 systemfonts_1.0.4
[26] digest_0.6.30 R.utils_2.12.0 rmarkdown_2.18 katex_1.4.0 base64enc_0.1-3
[31] pkgconfig_2.0.3 htmltools_0.5.3 styler_1.7.0 highr_0.9 dbplyr_2.2.1
[36] fastmap_1.1.0 rlang_1.0.6.9000 readxl_1.4.1 rstudioapi_0.14 generics_0.1.3
[41] jsonlite_1.8.3 zip_2.2.2 R.oo_1.25.0 googlesheets4_1.0.0 magrittr_2.0.3.9000 [46] credentials_1.3.2 Rcpp_1.0.9 munsell_0.5.0 fansi_1.0.3 clipr_0.8.0
[51] gdtools_0.2.4 lifecycle_1.0.3 R.methodsS3_1.8.2 stringi_1.7.8 yaml_2.3.6
[56] grid_4.2.1 crayon_1.5.2 haven_2.5.1 hms_1.1.2 knitr_1.40
[61] ps_1.7.2 pillar_1.8.1 uuid_1.1-0 pak_0.3.0 reprex_2.0.1
[66] xslt_1.4.3 glue_1.6.2.9000 evaluate_0.18 V8_4.2.2 data.table_1.14.5
[71] remotes_2.4.2 modelr_0.1.8 vctrs_0.5.0.9000 tzdb_0.3.0 cellranger_1.1.0
[76] gtable_0.3.1 openssl_2.0.4 assertthat_0.2.1 xfun_0.34 broom_1.0.1
[81] gitcreds_0.1.2 equatags_0.2.0 googledrive_2.0.0 gargle_1.2.0 timechange_0.1.1
[86] ellipsis_0.3.2