The single source for every default path in the package. Returns the three directories mariner works in, as a named list:
Arguments
- root
Project root.
NULL(the default) resolves it withmariner_project_root().
Details
assetsassets/– the Quarto extension, assembled once bymariner_setup_project(). Every render stages the theme from here, so a batch of fifty reports unpacks it once.reportsreports/– the.qmdsources, their PDFs, and a copy of_extensions/. The extension has to sit beside the documents: xelatex resolves the font paths inbrand-preamble.texagainst the directory that holds the.tex. An extension one level up gives a document that finds its format and then dies with "the font Lora-Regular cannot be found".zipszip_files/– the bundles you hand out.
The paths come back whether or not the directories exist.
mariner_setup_project() and .onAttach() create them.
Examples
mariner_dirs(root = tempdir())
#> $assets
#> [1] "/private/var/folders/k3/k8hfzfxd11j6vy0_t2rx27yw0000gn/T/RtmpWsU1oN/assets"
#>
#> $reports
#> [1] "/private/var/folders/k3/k8hfzfxd11j6vy0_t2rx27yw0000gn/T/RtmpWsU1oN/reports"
#>
#> $zips
#> [1] "/private/var/folders/k3/k8hfzfxd11j6vy0_t2rx27yw0000gn/T/RtmpWsU1oN/zip_files"
#>
# Every default path in the package is composed from this:
mariner_dirs(root = tempdir())$reports
#> [1] "/private/var/folders/k3/k8hfzfxd11j6vy0_t2rx27yw0000gn/T/RtmpWsU1oN/reports"