Should I Include the Template .tex File in My R Package

I have an R package with custom templates at GitHub - amarakon/amaryaml: Amarakon's personal YAML for R Markdown. One of the rmarkdown templates is called "eisvogel". It uses a LaTeX template with the same name. Should I include the template.tex file in the resources directory of the template and include it that way or should I expect users to already have the template installed on their system? (See R/eisvogel.R)

You could definitely embed the template inside the package and

  • either keep it there and point to it when doing the render
  • copy locally to the user project as other resource and rely on that one after

As example, you can see what the rticles package is doing.

1 Like

I copied what rticles does, thanks.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.