an R package for generating figure and table captions, especially for Rmd docs