FAQ and Practical Gotchas in ksTFL12 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. Can I use aggregate logic such as mean(x) inside a compute_cols() condition? | 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? | 13. Why does firstOf() mark more rows than I expected? | Rendering, replay, and reproducibility | 14. What is the practical difference between write_doc(), | 15. When do I need a persistent metaPath instead of tempdir()? | 16. Can I delete the original figure file after saving a report? | 17. Why did different sections of one report use different templates? | 18. How do I force one template across every section? | TOC and report assembly | 19. Why does a Table of Contents not appear even though I asked for one? | 20. Why is the TOC still just a placeholder when I open the DOCX? | 21. Can create_report() accept a named list of specs built in a loop? | Practical column and action recipes | 22. How do I define several display columns in one place? | 23. How do I use NA to skip one column inside a batch define_cols() call? | 24. How do I hide a helper column but still use it to drive formatting? | 25. How do I turn a hidden grouping column into a stub header? | 26. How do I insert subtotals from a hidden total column? | 27. How do I apply one condition to several visible columns at once? | 28. How do I combine font and background styles for one rule? | 29. How do I give columns a base style and still add row-level | 30. How do I build a total line by combining c_merge(), c_clear(), | 31. How do I apply more than one action to the same condition without | 32. How do I build a two-level stub with one hidden column and two style rules? | 33. Can I combine multiple actions of the same or different types, and how do they work together? | 34. 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() | 35. My figure looks fine in LibreOffice but text is cropped/reskinned in MS Word — why? | 36. How do I switch between continuous sections, repeating/not repeating headers, and row-break behavior across pages? | Metadata workflows: replay, combine, and validation | 37. How do I replay a document from stored metadata without re-running R code? | 38. How do I combine multiple documents into a single DOCX with a Table of Contents? | 39. How do I filter and combine only the latest versions of documents? | 40. How do I match saved metadata with actual DOCX files for QC validation? | 41. How do I store metadata persistently for regulatory validation? | 42. How do I clean up obsolete metadata files while keeping the latest versions?
ksTFL 0.12.0ksTFL Development TeamFAQ_with_ksTFL.Rmd