FAQ and Practical Gotchas in ksTFL1 days ago
Overview | Data and spec behavior | 1. Why does cols not drop the other columns from my data? | 2. Can I hide a column and still use it in compute_cols()? | 3. Why can I not set colWidth on an invisible column? | 4. Why did the other column widths change after I locked one column? | 5. Why did c_glue() not modify a repeated value? | Row actions and layout rules | 6. Why does compute_cols() not like aggregate logic such as mean(x)? | 7. Can I nest c_*() actions inside each other? | 8. Why does every add_span_header() call create a new row of headers? | 9. Can span headers overlap? | 10. How do I keep a small table under a figure on the same page? | 11. When should I use isGrouping, isPaging, and isColBreak? | 12. Why do my footnotes repeat on every page? | Rendering, replay, and reproducibility | 13. What is the practical difference between write_doc(), | 14. When do I need a persistent metaPath instead of tempdir()? | 15. Can I delete the original figure file after saving a report? | 16. Why did different sections of one report use different templates? | 17. How do I force one template across every section? | TOC and report assembly | 18. Why does a Table of Contents not appear even though I asked for one? | 19. Why is the TOC still just a placeholder when I open the DOCX? | 20. Can create_report() accept a named list of specs built in a loop? | Practical column and action recipes | 21. How do I define several display columns in one place? | 22. How do I use NA to skip one column inside a batch define_cols() call? | 23. How do I hide a helper column but still use it to drive formatting? | 24. How do I turn a hidden grouping column into a stub header? | 25. How do I insert subtotals from a hidden total column? | 26. How do I apply one condition to several visible columns at once? | 27. How do I combine font and background styles for one rule? | 28. How do I give columns a base style and still add row-level | 29. How do I build a total line by combining c_merge(), c_clear(), | 30. How do I apply more than one action to the same condition without | 31. How do I build a two-level stub with one hidden column and two style rules? | 32. Can I combine multiple actions of the same or different types, and how do they work together? | 33. How can I create three- or four-level nested text in one column (for example Parameter/Visit/Statistic indentation)? | Pattern A: detail rows only, hierarchy injected with c_addrow() | Pattern B: placeholder hierarchy rows in data, collapsed with c_merge() | 34. How do I switch between continuous sections, repeating/not repeating headers, and row-break behavior across pages? | Metadata workflows: replay, combine, and validation | 35. How do I replay a document from stored metadata without re-running R code? | 36. How do I combine multiple documents into a single DOCX with a Table of Contents? | 37. How do I filter and combine only the latest versions of documents? | 38. How do I match saved metadata with actual DOCX files for QC validation? | 39. How do I store metadata persistently for regulatory validation? | 40. How do I clean up obsolete metadata files while keeping the latest versions?
