r markdown - Pushing existing tinytable object directly to Word? - Stack Overflow

admin2025-04-19  1

I have an existing tinytable "object" (R labels it "Formal class tinytable", call it "VIEWTotal") obtained after a custom function. Screenshot R View of VIEWTotal tinytable object The available posts I have been able to find, including the documentation, all show applying tinytable(), save_tt(), etc. to the dataframe rather than the S4 object. I cannot apply tinytable directly to the dataframe and get the result. Documentation states that the transition to Word requires two steps: (1) generate markdown table, (2) use Pandoc software to convert markdown to Word. I haven't been able to get Step (1), much less Step (2).

I'd appreciate any suggestions. (I am not a complete newbie, but not advanced R user either.)

Similar post: Use kableExtra to manipulate and save tex file after modelsummary

I have an existing tinytable "object" (R labels it "Formal class tinytable", call it "VIEWTotal") obtained after a custom function. Screenshot R View of VIEWTotal tinytable object The available posts I have been able to find, including the documentation, all show applying tinytable(), save_tt(), etc. to the dataframe rather than the S4 object. I cannot apply tinytable directly to the dataframe and get the result. Documentation states that the transition to Word requires two steps: (1) generate markdown table, (2) use Pandoc software to convert markdown to Word. I haven't been able to get Step (1), much less Step (2).

I'd appreciate any suggestions. (I am not a complete newbie, but not advanced R user either.)

Similar post: Use kableExtra to manipulate and save tex file after modelsummary

Share Improve this question asked Mar 6 at 0:50 Va Nee L. Van VleckVa Nee L. Van Vleck 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

All you need to do is call:

library(tinytable)
save_tt(existing_tinytable_object, "path/to/file.docx")
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745000979a279222.html

最新回复(0)