Modular output of epidemics analysis reports based on R package:an example of COVID-19 epidemics
Objective To explore the modular output method of epidemics analysis reports based on R package.Methods COVID-19 epidemic was selected as an example.Based on the repeatable R package,the Office software was employed to achieve the interaction between R package and Office Word software.Results The bookmark was inserted into the predesigned template file,and modular data,characters,tables and figures were output through the R package.Based on the Office Excel software,the epidemic analysis automation and visualization output of epidemiological reports were generated using the Officer function in the R package.Conclusions R package is simple,highly effective and convenient to maintain,which may remarkably improve the timeliness and ac-curacy of epidemic analyses.