Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 20 Aug 13:25
· 0 commits to f5124fbc9641ff98ba5cc544fa64633450fdae4d since this release

New features

  • render_report() gains quarto_timeout (default 600 seconds, Inf
    disables) and quarto_bin. A hung Quarto render is now killed along
    with its whole process tree (Deno/Pandoc/knitr children) and signals an
    error of class quartifyr_quarto_timeout that includes the tail of
    Quarto's stderr. quarto_bin (or the QUARTO_PATH environment variable)
    selects the Quarto executable instead of relying on PATH (#71).
  • New check_report_project() is a render-free preflight (it never invokes
    Quarto). It returns a data frame of findings (check, severity,
    path, message) covering the project preconditions render_report()
    enforces, the required Quarto extensions, every {rpfy}: placeholder's
    artifact and metadata sidecar, the abbreviation keys and meta_type
    those sidecars reference in standard_footnotes.yaml, and placeholders
    that end their section. render_report() now shares the precondition
    checks with it, with unchanged error messages (#70).
  • render_report() now returns a structured quartifyr_render_result
    (still containing shell/draft/final): status ("ok",
    "warning" or "error"), artifacts with SHA-256 hashes,
    unfilled_placeholders (scanned from the produced docx),
    missing_metadata, warnings, errors and log_dir. New
    strict = TRUE signals an error of class quartifyr_render_incomplete
    instead of returning an incomplete result; the default stays FALSE. A
    failed LibreOffice step still only warns, but is now recorded in the
    result. When build_report() fails because a metadata sidecar is
    missing, the error (class quartifyr_pass2_failed) now names it (#69).
  • New inst/scripts/render.R entry point for CI and background jobs:
    --project <dir> --shell report.qmd --status draft --json [--strict]
    prints the result as JSON on stdout (shape in
    inst/schemas/render-result.schema.json), sends everything else to
    stderr, and exits non-zero on any error or, with --strict, any non-ok
    status. The GitHub Action gains a strict input and a status output
    (#69).
  • New install_quarto_extensions() installs the required third-party Quarto
    extension (A2-ai/quarto-plus) without network access, from a copy now
    bundled in the package or from a directory or .zip/.tar.gz archive of
    your choosing. The bundled copy is unmodified upstream (MIT-licensed, with
    its LICENSE kept alongside; provenance in inst/extensions/README.md)
    and is drift-checked against the examples' copies by
    scripts/sync_demo_extension.py. check_quarto_extensions() now points
    at it (#72).
  • Offline and pre-provisioned setup (#72). initialize_quartifyr_project()
    gains python_env (an existing environment with python-docx and
    pyyaml: verified by name, then pyro and uv are skipped entirely, and
    render_report()'s Python steps run in it via
    options(quartifyr.python_env = ...)), install_extensions and
    extensions_from. With options(quartifyr.offline = TRUE) or
    UV_OFFLINE=1, pyro's provisioning runs offline, stops up front if uv
    isn't installed instead of letting pyro download and install it into
    ~/.local/bin, and refuses from_repo. Every network-dependent failure
    names the step, the resource and how to provide it locally (error class
    quartifyr_offline_failure), including uv's own stderr, which pyro
    otherwise hides.

New features

  • initialize_quartifyr_project() can now scaffold a new project's
    _quarto.yml/style YAML/shell .qmd from a template source instead of
    leaving the directory empty (issue #23): from_dir/from_repo (with
    ref/subdir/type/force) pull from a local directory or a git repo
    ("[host/]owner/repo[/subdir][@ref]" shorthand, or a full URL),
    mirroring ../deckifyr's identical initialize_deck_project() template
    mechanism (issue #34 there). New quartifyr-styling init CLI
    subcommand backs this.
  • New quartifyr-styling skills [DIRECTORY] / styling_export_skills()
    (issue #57): exports two bundled Claude Skills-format SKILL.md files
    (quartifyr-style-config, quartifyr-shell-authoring) to a directory of
    your choice, for use with Claude Code or any other coding agent that
    reads SKILL.md files.

Documentation

  • Removed the awkward "(All)" wording from the demo report's combined List
    of Figures/List of Tables headings and docs-site screenshots/alt text,
    and added a section_fig_caption/subsection_fig_caption code sample
    to the "Scoped figure/table numbering" article section (issue #59).
  • Removed stray GitHub issue-number references from roxygen documentation
    (issue #60).
  • Added @examples to every exported R function/data object that was
    missing one (issue #61).

Bug fixes

  • Excluded LICENSE and the large man/figures/ demo GIFs/downloadable
    .docx files (pkgdown-site-only assets, not needed by the installed
    package) from the built package tarball, fixing an "unmentioned
    DESCRIPTION" R CMD check NOTE and shrinking the tarball from ~4.8MB to
    ~2.2MB (issue #62).

New features

  • New .quartifyr_list_of_figures/.quartifyr_list_of_tables divs build
    a combined List of Figures/List of Tables spanning both quarto-plus's
    own continuous fig_caption/tbl_caption and all six of this
    extension's scoped caption shortcodes (appendix_fig_caption/
    appendix_tbl_caption, section_fig_caption/section_tbl_caption,
    subsection_fig_caption/subsection_tbl_caption), in true document
    order -- unlike quarto-plus's own .list_of_figures/
    .list_of_tables (which stay as-is, continuous-only, and keep working
    unchanged), a native Word TOC field switch can't merge multiple SEQ
    families into one document-ordered list. A hand-built list, with live
    REF/PAGEREF fields per entry, built by a new post-render step in
    quartifyr_styling.layout.apply_layout() rather than a Lua filter --
    see inst/extensions/quartifyr/README.md's "Combined List of
    Figures/Tables" section for why (#54).
  • The reference-doc template now also configures a "Table of Figures"
    style (Word's built-in style for quarto-plus's own
    .list_of_figures/.list_of_tables, previously left unstyled/
    Word-default) to match "TOC 1" -- the style .quartifyr_list_of_figures/
    .quartifyr_list_of_tables entries above use -- so both kinds of list
    render identically once recalculated (#54).