message("\n### Report ",i," of ",nrow(reports),"\n")
if (!is.na(reports$description[i])){
message("_",reports$description[i],"_\n")
}
if (!is.na(reports$funnel[i])&&reports$funnel[i]){
message("**Note**: this report is configured to allow more than one row per day.\n")
}else{
message("**Note**: this report is configured to have one row per day.\n")
}
if (!is.na(reports$max_data_points[i])){
message("**Note**: this report is configured to be \"rolling\" -- ",reports$max_data_points[i]," maximum number of days allowed in the final dataset.\n")
}
if (opt$include_samples){
if (grepl("forecasts",reports$module[i],fixed=TRUE)){
message("* It took ",tolower(seconds_to_period(ceiling(sum(elapsed_total))))," overall to generate these ",nrow(reports)," reports.")
message('* The quickest report took ',head(reports$time_elapsed,1),' and it was "',head(reports$report,1),'" (',head(reports$type,1),') from the ',head(reports$module,1),' module.')
message('* The slowest report took ',tail(reports$time_elapsed,1),' and it was "',tail(reports$report,1),'" (',tail(reports$type,1),') from the ',tail(reports$module,1),' module.')
message("* The median is ",tolower(seconds_to_period(ceiling(median(elapsed_total))))," per report. The average is ",tolower(seconds_to_period(ceiling(mean(elapsed_total))))," per report.")