tracee
is an R package that provides convenient wrappers for saving traceable plots and tables for reporting.
tracee
is on CRAN and MPN.
install.packages("tracee")
Device type will be decided based on file name extension. png and pdf are supported.
ggwrite(p,file="path/to/myplot.png",script="path/to/script")
Only flextable objects can be saved.
ftwrite(ft,file="path/to/mytable.png",script="path/to/script")