-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix(colformat_md): follow internal change of flextable data structure #101
Conversation
R/colformat.R
Outdated
content <- if (is.null(x[[part]][["content"]][["content"]])) { | ||
# flextable >= 0.9.5 | ||
x[[part]][["content"]][["data"]] | ||
} else { | ||
x[[part]][["content"]][["content"]][["data"]] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidgohel The issue #100 seems to be happened because of the change in the internal data structure. Am I right? (I have not yet reviewed the git log)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the internal data structure has been simplified. Sorry I ran revdepcheck and did not catch that issue
I will drop support for flextable < 0.9.5 by specifying required version in |
Deploying ftextra with Cloudflare Pages
|
a78d3ef
to
24f1ddc
Compare
@atusy is it possible to use exported functions (I. E. as_paragraph or append_chunk) instead of using internal structures? That would help having more robust code for both of us, see for example https://github.com/davidgohel/flextable/blob/2784247f5b500eca8fe4f9983326bf17c3897d12/R/01_fpstruct.R#L313 |
Thanks. I understand robust code should avoid relying on the internal data structure.
To solve both, I need flextable to export a function that provides access to the internal data structure. However, but I do not think this is a good idea because flextable may face a difficulty to change the internal data structure in the future. To solve the first one, I have a suggestion. Anyway, I would be happy to know if there is a way for ftExtra to avoid the dependency on the internal data. |
Thanks for the suggestion 😊 |
My pleasure! I would like to release a fix as soon as possible, so let me continue relying on the internal data structure for now. Maybe I can do better in the near future 😄 |
18de336
to
236f205
Compare
fixes #100