You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error that occurs while printing the final docx:
Error in data.frame(content_section = content_section_chrs, file_name = file_names, : arguments imply differing number of rows: 0, 1
I need to take a closer look at my workflow (its super hacky atm), but if it's helpful I'm using as_clintable(), write_clintable() and clin_add_titles() so far in my script.
Also: Hope you've been keeping well man, it's been a while!
That said, I don't think this approach would even solve the underlying issue (easily), because the tabels still writes to the body, and right now you can't write a document out without one.
I think a proper implementation of this should be reasonably straightforward though. Tables have a lot of pagination concerns. Plots should realistically be one plot object per page. So the flow could be:
Create a list of plots
Add list of plots to clindoc()
Page break between each element passed to clindoc().
Hope you're doing well too, @mattkumar! Thanks for always being an early package tester here!
Activity
mattkumar commentedon Jul 2, 2025
Just what I was wondering... :)
We're using clinify in making a small results package for a study / pilot, some of the results will be generated by ggplot as well.
I've tried to first generate the document, read it back in with officer, append an image with officer and write it back.
I get an error that occurs while printing the final docx:
Error in data.frame(content_section = content_section_chrs, file_name = file_names, : arguments imply differing number of rows: 0, 1I need to take a closer look at my workflow (its super hacky atm), but if it's helpful I'm using
as_clintable(),write_clintable()andclin_add_titles()so far in my script.Also: Hope you've been keeping well man, it's been a while!
mstackhouse commentedon Jul 21, 2025
Interestingly, this only happens if titles and footnotes are set:
Created on 2025-07-21 with reprex v2.1.1
That said, I don't think this approach would even solve the underlying issue (easily), because the tabels still writes to the body, and right now you can't write a document out without one.
I think a proper implementation of this should be reasonably straightforward though. Tables have a lot of pagination concerns. Plots should realistically be one plot object per page. So the flow could be:
clindoc()clindoc().Hope you're doing well too, @mattkumar! Thanks for always being an early package tester here!
mstackhouse commentedon Jan 7, 2026
@mattkumar check out #92 because apparently this is possible and I just didn't realize how.
mstackhouse commentedon Nov 4, 2026
Closed with #92