You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
failed to make tables by "table1" and "gtsummary" packages in quarto book project #1284
When I created a Quarto book in "docx" format with a chapter with codes from "table1" and "gtsummary" packages to construct summary tables, I failed to make it and saw the following error messages.
Error in flextable_to_rmd(x, bookdown = is_bookdown, pandoc2 = pandoc2, :
pandoc version >= 2.0 required for flextable rendering in docx
Calls: .main ... knit_print -> knit_print.flextable -> flextable_to_rmd
Execution halted
But when I created, using Rmd file, not qmd file as in quarto book, a separate word document with codes from "table1" and "gtsummary" packages to construct summary tables, I make it successfully.
With the information you provided, it could come from gtsummary or flextable package not supporting correctly being run inside Quarto instead of rmarkdown. The error you get means Pandoc version is not correctly detected and make flextable error.
To check that further, we need a reproducible example. Can you share a one ? thanks
Thank you for your response. Fortunately, I was able to produce "gtsummary" and "table1" tables in docx file by quarto book project after I have reinstalled a recent quarto version 0.9.653.
Activity
cderv commentedon Jul 6, 2022
With the information you provided, it could come from gtsummary or flextable package not supporting correctly being run inside Quarto instead of rmarkdown. The error you get means Pandoc version is not correctly detected and make
flextableerror.To check that further, we need a reproducible example. Can you share a one ? thanks
zawkzaw commentedon Jul 7, 2022
Thank you for your response. Fortunately, I was able to produce "gtsummary" and "table1" tables in docx file by quarto book project after I have reinstalled a recent quarto version 0.9.653.
Best wishes
cderv commentedon Jul 7, 2022
Good to know ! Thanks for the update