Skip to content

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 05 Nov 22:52

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.

  • 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).
  • render_report() is offline-safe by itself (#76). New offline argument
    (and --offline on render.R), defaulting to offline mode as set by
    options(quartifyr.offline = TRUE) or UV_OFFLINE: for the whole render it
    sets UV_OFFLINE, UV_NO_INDEX, UV_PYTHON_DOWNLOADS=never and
    UV_NO_SYNC, so quartifyr's styling step and every uv run in reportifyr's
    pass 2 use the already-provisioned environment instead of re-syncing (and
    recreating) .venv, even with a cold uv cache. A uv failure at render time
    is now a quartifyr_offline_failure naming the step. The offline article
    lists the variables and the exact conditions under which a render makes no
    network calls, and says concurrent renders of one project are not
    supported.
  • The render result is versioned and carries provenance (#78). Every JSON
    result, including the error object of a failed render, has
    schema_version: 1, and the schema is now
    inst/schemas/render-result-v1.schema.json (renamed from
    render-result.schema.json; new optional fields keep the version, removing
    or renaming one bumps it). Results gain inputs (path, SHA-256 and size of
    the shell .qmd, each figure, table and metadata sidecar used,
    standard_footnotes.yaml, config.yaml and the reference-doc), versions
    (quartifyr, reportifyr, Quarto, quartifyr_styling, R) and
    started_at/finished_at.
  • New inst/scripts/check.R --project <dir> --shell report.qmd [--json] runs
    check_report_project() for scripts and launchers: JSON with
    schema_version and findings, exit status 0 without error findings, 1
    with, 2 on bad usage (#78).
  • A strict render that is incomplete now always reports status: "error",
    also when the render itself only warned. --help and the docs say that
    exit status 0 without --strict only means the render finished (#78).
  • render_report() resolves a relative shell_qmd and the default
    standard_footnotes_yaml, config_yaml, figures_path and tables_path
    against the calling directory before changing into the project, so a
    relative --shell works from outside the project (#78).
  • The docs now state which steps quarto_timeout does not bound, and why the
    timeout cleanup test does not run on Windows (#78).
  • A failed, timed-out or interrupted render_report() no longer leaves the
    previous render's report/draft and report/final documents in place
    looking complete. Once the render starts, the outputs it will regenerate
    are first moved to report/.previous/, and an output only counts as
    produced if it was written after the render began (#77).
  • The release workflow no longer rewrites a published release: a refresh
    (moving the tag, replacing the tarball) only happens while the release is
    under 24 hours old, and is skipped with a warning after that, so a
    version number keeps naming one source tree and one tarball. Each release now also carries a SHA256SUMS file. This
    release is 0.3.2 because 0.3.1's tag and tarball had been replaced with
    the job-contract and offline work (#75).