We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ftExtra 0.6.3, flextable 0.9.5.
ftExtra
flextable
Tested footnote() in the following code:
footnote()
if (rmarkdown::pandoc_available("2.0.6")) { library(flextable) ft <- flextable( data.frame( x = c("**foo** bar", "***baz***", "*qux*"), stringsAsFactors = FALSE ) ) %>% footnote( i = 1, j = 1, value = as_paragraph_md("**foot**"), ref_symbols = "*", part = "header", inline = TRUE ) }
result:
Error in match.names(clabs, names(xi)): names do not match previous names
Then I tried to set_caption() with as_paragraph_md():
set_caption()
as_paragraph_md()
if (rmarkdown::pandoc_available("2.0.6")) { library(flextable) ft <- flextable( data.frame( x = c("**foo** bar", "***baz***", "*qux*"), stringsAsFactors = FALSE ) ) %>% set_caption( caption = as_paragraph_md("cap~sub~^sup^cap"), style = "Table Caption" ) %>% ftExtra::colformat_md( part = "all" ) }
The result is all the subscripts and superscripts are clumped together:
I suppose this is related to the issue #100 ?
The text was updated successfully, but these errors were encountered:
fix(as_paragraph_md): flextable's seq_index is renamed to .chunk_index (
304830f
fixes #103)
Thank you for the bug report.
#104 should fix the issue. Could you try pak::pak("atusy/ftExtra#104") to install the patched version?
pak::pak("atusy/ftExtra#104")
As you guessed, the problem comes from the change in the internal data structure of flextable, which is mentioned by David on #101 (comment)
Sorry, something went wrong.
The problem is solved. Thanks!
docs(NEWS): flextable's seq_index is renamed to .chunk_index (fixes #103
79efbe7
)
Merge pull request #104 from atusy/flextable-chunk-index
efe8660
fix(as_paragraph_md): flextable's seq_index is renamed to .chunk_index (fixes #103)
No branches or pull requests
ftExtra
0.6.3,flextable
0.9.5.Tested
footnote()
in the following code:result:
Then I tried to
set_caption()
withas_paragraph_md()
:The result is all the subscripts and superscripts are clumped together:
I suppose this is related to the issue #100 ?
The text was updated successfully, but these errors were encountered: