rtables icon indicating copy to clipboard operation
rtables copied to clipboard

follow-up to docx export

Open Melkiades opened this issue 1 year ago • 4 comments

Refinements need the following fixes:

  • [x] refactor "auto" widths to have layout = "fixed" otherwise. See #766
  • [x] topleft vertical alignment and boldness
  • [ ] topleft could be merged with flextable::merge_at but then indentation could be inexact (and row counts need an exception)
  • [x] translation of character width to mm or pt (fix width) - Lets rely on Word for wrapping and paginating (closed)
  • [ ] find a way to test docx output (not easy)
  • [x] remove somehow tbl from theme; independent from rtables object (need some thinking for label_row boldness). Maybe can be null and assigned when in tt_to_flextable or error?
  • [ ] low border in first page is missing if it spans multiple tables (could not find the option to change this behavior)
  • [ ] Add a vignette about exports and update README with docx
  • [ ] merge file template and doc file usage
  • [x] cast (...) from export to tt_to_flextable
  • [x] add limits 6-12 for font_size
  • [ ] add selection of different pages (from export not from theme (or both?))
  • [ ] #924
  • [ ] #925
  • [ ] #926

Melkiades avatar Sep 25 '23 13:09 Melkiades

may I ask if we can allow the table to be exported into a existing file?

clarkliming avatar Oct 09 '23 10:10 clarkliming

may I ask if we can allow the table to be exported into a existing file?

You should be able with the template_file option. I did not test it fully though! Meaning that I do not know if the template format will be overloaded or vice-versa. It should just added with the specified style

Melkiades avatar Oct 09 '23 14:10 Melkiades

I see. I was wondering if we should only use file as the only argument, like if file exists and is a docx file then append result to it; if file does not exist then start from new doc files.

clarkliming avatar Oct 09 '23 14:10 clarkliming

I see. I was wondering if we should only use file as the only argument, like if file exists and is a docx file then append result to it; if file does not exist then start from new doc files.

yes it makes sense if you think it is simpler I will add it to this issue

Melkiades avatar Oct 10 '23 07:10 Melkiades