Repository navigation
v0.3.1
·
0 commits
to f5124fbc9641ff98ba5cc544fa64633450fdae4d
since this release
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.
New features
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).
New features
- New
.quartifyr_list_of_figures/.quartifyr_list_of_tablesdivs build
a combined List of Figures/List of Tables spanning bothquarto-plus's
own continuousfig_caption/tbl_captionand 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 -- unlikequarto-plus's own.list_of_figures/
.list_of_tables(which stay as-is, continuous-only, and keep working
unchanged), a native WordTOCfield switch can't merge multipleSEQ
families into one document-ordered list. A hand-built list, with live
REF/PAGEREFfields per entry, built by a new post-render step in
quartifyr_styling.layout.apply_layout()rather than a Lua filter --
seeinst/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 forquarto-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_tablesentries above use -- so both kinds of list
render identically once recalculated (#54).