R/compare_plot_report_generic.R
create_ge_plot_report.Rd
Based on a Rmarkdown Template (ps_templ) document all plots in given GE directory (ps_gedir) are taken. For a given plot in directory ps_gedir, a corresponding plot with the same filename is searched in an archive directory (ps_archdir). If such a plot is found, the two corresponding plots are shown side-by-side in the generated Rmarkdown report.
create_ge_plot_report(
ps_gedir,
ps_archdir,
ps_trgdir,
ps_templ,
ps_report_text,
ps_rmd_report = "ge_plot_report.Rmd",
pb_keep_src = FALSE,
pb_session_info = TRUE,
pb_debug = FALSE,
plogger = NULL
)
directory with plots of current GE round
archive directory with plots from previous GE
target directory where plot files from archive are extracted, relative to ps_gedir
path to Rmarkdown template file
text that is included in the report before plotting
name of report source file
should Rmd source be kept
should session_info be included
flag indicating whether debug info is printed
log4r logger object
if (FALSE) {
create_ge_plot_report(ps_gedir = "{path to comparison dir}",
ps_archdir = "{path to archive dir}",
ps_trgdir = "1904/compareBull",
ps_templ = "inst/templates/compare_plots.Rmd.template",
ps_report_text = "## Comparison Of Plots\nPlots compare estimates ...",
ps_rmd_report = 'ge_plot_report.Rmd',
pb_debug = TRUE)
}