add run_document command; collect rmd_warning metadata