R package for generation of formatted text and code from templates.