Skip to content
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

Migrate Exporter logic to formatters #491

Open
3 of 4 tasks
gmbecker opened this issue Dec 20, 2022 · 3 comments
Open
3 of 4 tasks

Migrate Exporter logic to formatters #491

gmbecker opened this issue Dec 20, 2022 · 3 comments
Assignees

Comments

@gmbecker
Copy link
Collaborator

gmbecker commented Dec 20, 2022

  • text-file exporter export_as_txt
  • flextable exporter (?) tt_to_flextable (rename function if so)
  • PDF export_as_pdf
  • RTF export_as_rtf
@shajoezhu
Copy link
Collaborator

Hi @gmbecker , I think this is really good to move out of rtables. Though I wonder if formatters is the best place to host these export functionalities. from a workflow point of view, these should be downstream functionalities. something like export_rtables_to_pdf, export_rlistings_to_pdf, export_rtables_to_rtf, export_rlistings_to_rtf, I wonder we should start a new package for the downstream process

@gmbecker
Copy link
Collaborator Author

@shajoezhu, whole point is that we would not have export_rtables_bla and export_rlistings_bla, we only need one because it is a function of the MatrixPrintForm (and its embedded pagination_dfs). That is why it belongs in formatters, because it is shared functionality.

@shajoezhu
Copy link
Collaborator

absolutely agree: we just need one

my point is from package dependency point of view. rtable creates an rtable object, rlisting creates a listing object. exporting is for something downstream, which can render to rtf, or pdf at the moment, in the future, we may also want ppt, flexitable, latex code. these exporting utilities should be used after rtable or listing object are created. placing these machinaries upstream is a little counterintuitive. and MatrixPrintForm happens downstream of rtables and listing as well. do you think it would make sense to take MatrixPrintForm out of formatters, and creating another package downstream instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants