A general-purpose package for dynamic report generation in R