Weave
allows to produce dynamic documents where the script that produce the output is embedded directly in the document, with optionally only the output rendered.using Weave; weave("testWeave.jmd", out_path = :pwd, doctype = "pandoc2pdf")
texlive-xetex
) already installed in the system.
If you use Ununtu, the version of pandora in the official repositories is too old. Use instead the deb available in https://github.com/jgm/pandoc/releases/latest .