Repository navigation
v0.3.2
New features
-
render_report()gainsquarto_timeout(default 600 seconds,Inf
disables) andquarto_bin. A hung Quarto render is now killed along
with its whole process tree (Deno/Pandoc/knitr children) and signals an
error of classquartifyr_quarto_timeoutthat includes the tail of
Quarto's stderr.quarto_bin(or theQUARTO_PATHenvironment variable)
selects the Quarto executable instead of relying onPATH(#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 preconditionsrender_report()
enforces, the required Quarto extensions, every{rpfy}:placeholder's
artifact and metadata sidecar, the abbreviation keys andmeta_type
those sidecars reference instandard_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 structuredquartifyr_render_result
(still containingshell/draft/final):status("ok",
"warning"or"error"),artifactswith SHA-256 hashes,
unfilled_placeholders(scanned from the produced docx),
missing_metadata,warnings,errorsandlog_dir. New
strict = TRUEsignals an error of classquartifyr_render_incomplete
instead of returning an incomplete result; the default staysFALSE. A
failed LibreOffice step still only warns, but is now recorded in the
result. Whenbuild_report()fails because a metadata sidecar is
missing, the error (classquartifyr_pass2_failed) now names it (#69). -
New
inst/scripts/render.Rentry 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 astrictinput and astatusoutput
(#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.gzarchive of
your choosing. The bundled copy is unmodified upstream (MIT-licensed, with
itsLICENSEkept alongside; provenance ininst/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()
gainspython_env(an existing environment withpython-docxand
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_extensionsand
extensions_from. Withoptions(quartifyr.offline = TRUE)or
UV_OFFLINE=1, pyro's provisioning runs offline, stops up front ifuv
isn't installed instead of letting pyro download and install it into
~/.local/bin, and refusesfrom_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.qmdfrom 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 identicalinitialize_deck_project()template
mechanism (issue #34 there). Newquartifyr-styling initCLI
subcommand backs this. -
New
quartifyr-styling skills [DIRECTORY]/styling_export_skills()
(issue #57): exports two bundled Claude Skills-formatSKILL.mdfiles
(quartifyr-style-config,quartifyr-shell-authoring) to a directory of
your choice, for use with Claude Code or any other coding agent that
readsSKILL.mdfiles.
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 asection_fig_caption/subsection_fig_captioncode sample
to the "Scoped figure/table numbering" article section (issue #59). - Removed stray GitHub issue-number references from roxygen documentation
(issue #60). - Added
@examplesto every exported R function/data object that was
missing one (issue #61).
Bug fixes
- Excluded
LICENSEand the largeman/figures/demo GIFs/downloadable
.docxfiles (pkgdown-site-only assets, not needed by the installed
package) from the built package tarball, fixing an "unmentioned
DESCRIPTION"R CMD checkNOTE and shrinking the tarball from ~4.8MB to
~2.2MB (issue #62). render_report()is offline-safe by itself (#76). Newofflineargument
(and--offlineonrender.R), defaulting to offline mode as set by
options(quartifyr.offline = TRUE)orUV_OFFLINE: for the whole render it
setsUV_OFFLINE,UV_NO_INDEX,UV_PYTHON_DOWNLOADS=neverand
UV_NO_SYNC, so quartifyr's styling step and everyuv runin 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 aquartifyr_offline_failurenaming 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 gaininputs(path, SHA-256 and size of
the shell.qmd, each figure, table and metadata sidecar used,
standard_footnotes.yaml,config.yamland 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_versionandfindings, 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.--helpand the docs say that
exit status 0 without--strictonly means the render finished (#78). render_report()resolves a relativeshell_qmdand the default
standard_footnotes_yaml,config_yaml,figures_pathandtables_path
against the calling directory before changing into the project, so a
relative--shellworks from outside the project (#78).- The docs now state which steps
quarto_timeoutdoes 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'sreport/draftandreport/finaldocuments in place
looking complete. Once the render starts, the outputs it will regenerate
are first moved toreport/.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 aSHA256SUMSfile. 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).