Template:R from formula/doc