Repository navigation
Releases
v0.3.4
New features
- Wide tables now fit the page, and a report can put tables on a landscape
page (#88).render_report()runs a new step after reportifyr's pass 2,
styling_fit_tables()(quartifyr-styling fit-tables,fit_tables = TRUE
by default,--no-fit-tablesinrender.R). reportifyr 0.4.0 leaves the
widths of its tables to the word processor, so a table of a dozen or more
columns got columns a few characters wide and header words that broke
mid-word. Each table it inserted now gets a fixed layout: the width is the
content width of the section the table is in (not a fixed 6 inches), no
column is narrower than its longest unbreakable word, and when the words
alone don't fit the font is reduced in 1 pt steps to a 7 pt minimum. A
table still too wide at 7 pt is fitted to the page and reported as a
warning in the result. Widths are estimated from character metrics, not
measured with the font.- New
{{< landscape >}}and{{< portrait >}}shortcodes (after
{{< body-start >}}) start and end a landscape section.apply-layout
turns them into section breaks with swapped page dimensions; each section
keeps its own header, footer and the body's page numbering. The section
break survives reportifyr's pass 2.
Bug fixes
- The front-matter and body section breaks
apply-layoutinserts now take the
orientation of the section they end, not that of the document's final
section, so a trailing landscape section no longer turns them landscape too.
v0.3.3
New features
- One existing Python environment can now serve both passes with no pyro, no
project.venvand no network (#85). With apython_env
(options(quartifyr.python_env)orQUARTIFYR_PYTHON_ENV),
render_report()also points reportifyr's pass 2 at it: pyro gets
options(venv_dir)for the render, and uv getsUV_PROJECT_ENVIRONMENTand
UV_NO_SYNCandUV_PYTHON(its own interpreter: without a
pyproject.tomluv is outside a project, and a.python-versionfile would
otherwise make it run a different interpreter), so it runs reportifyr's module
in that environment and creates no.venvand rewrites nouv.lock, even in
a project that ships both. An environment not named.venvis exposed through
a temporary junction on Windows (no privilege needed) or symlink elsewhere.
Newinitialize_report_project_offline()creates the
report folders,config.yaml,standard_footnotes.yamland the
.report_init.jsonmarker thatreportifyr::initialize_report_project()
makes, without calling pyro or uv (that function installs uv and runs
uv lock/uv syncagainst PyPI); it leaves what exists alone. uv itself
must still be installed, since reportifyr runs it for every call, but it is
never asked to sync, resolve or download. Theoffline-pipelineCI job now
also sets up and renders a fresh copy of the demo with onlypython_env,
underunshare --net, and fails if a.venvappears oruv.lockchanges. render_report(soffice_bin = )/render.R --soffice-bin <path>name the
LibreOffice executable for--recalculate-fieldsand
--resolve-same-page-crossrefs, falling back toQUARTIFYR_SOFFICE_BIN
and thensofficeonPATH(the same order asquarto_bin). The styling
CLI's two LibreOffice subcommands andstyling_recalculate_fields()/
styling_resolve_same_page_crossrefs()take it too. A missing or
non-executable path fails before the render starts, and the result's
versions$libreofficerecords the resolved path andsoffice --version
of the one that ran (#83).
Breaking changes
- A configured
python_env(options(quartifyr.python_env)or
QUARTIFYR_PYTHON_ENV) now also drives reportifyr's pass 2 in
render_report()(#85). Before, it applied only to quartifyr's own Python
calls, and pass 2 ran in the project's.venvthrough pyro. Anyone who set a
python_envfor the styling steps and relied on a separate.venvfor pass 2
now has pass 2 run in thepython_envinstead, and that environment must have
pillowas well aspython-docxandpyyaml;render_report()fails before
rendering, naming what is missing, if it doesn't. - The
inputs[].rolevalues in the result JSON gainedquarto_yml,style,
overrideandextension(#82). The schema stays at version 1 because
consumers are expected to accept roles they don't know, soroleis now an
open string inrender-result-v1.schema.json(with the known values listed
as examples). A validator built from the 0.3.2 copy of the schema, which kept
roleclosed, rejects 0.3.3 output; update it, or loosenrolethere.
Bug fixes
- Corrections to the above before release:
- Offline relabelling no longer fires on ordinary pass-2 errors (#82). The
matcher accepted the bare words "network" and "offline" and reads
reportifyr's log lines, which carry file paths, so a project under
.../offline-study/had every error reported as "cannot ... without
network access". It now matches uv's and the network stack's own phrases. report/draft/intermediate_files/(where reportifyr moves-clean,
-tabsand-tabsfigs) is moved aside with the other outputs, so a
rejected or killed render no longer leaves the last good run's
near-complete-tabsfigs.docxlive (#81).- The interpreter-mismatch warning no longer fires on a correct environment:
uv writesversion_info = 3.12topyvenv.cfg, which was read as 3.12.0
and so "mismatched" a 3.12.13 pin. Partial versions are compared only on
the components they have, and the check also runs whenpython_envis the
folder holding.venv(#82). - Extension hashes are computed in C-locale order, so the same extension has
the same SHA-256 under any collation (#82). render_report()hands the LibreOffice steps the absolute path it checked,
so a relativesoffice_bincan't mean something else inside the project
(#83).
- Offline relabelling no longer fires on ordinary pass-2 errors (#82). The
- Contract gaps in the offline and result work (#82):
- In offline mode a pass-2 uv failure is now recognised with the real
reportifyr and pyro, which don't pass uv's message on (pyro says only
"<script> failed."; reportifyr's docx validation discards it). Pass 2's
output is kept and, when it doesn't explain the failure, uv is asked
directly with a no-opuv run -m reportipyr.cli --help. The old test
stubbed an error message real reportifyr never produces. - A relative
reference_doc,styleoroverride(and--reference-doc,
--style,--override) is resolved against the caller's directory
before the render moves into the project, so the file that is checked,
hashed and used is the same one. inputsis hashed before the render starts, and now includes
_quarto.yml, an explicitstyle/overrideYAML and one row per Quarto
extension under_extensions/. The early-error JSON carriesversions.- The schema requires
artifacts,inputsandversionsfor a render
that finished (okorwarning), and CI validates the real
render.R --jsonoutput (a success and a forced failure) against it, in
the full-pipeline and offline jobs (scripts/validate_render_result.py). - Offline, an environment whose interpreter doesn't match the project's pin
(.python-version, elserequires-python) is reported as a result
warning instead of uv's silent "Using incompatible environment".
- In offline mode a pass-2 uv failure is now recognised with the real
- A failed, rejected or interrupted render no longer leaves a
complete-looking docx inreport/draftorreport/final. A render now
works inreport/.staging-<id>/(Quarto is pointed at it with
--output-dir) and is only moved intoreport/{shell,draft,final}once it
has finished and been accepted, so astrict = TRUErejection, a pass-2
failure partway through (reportifyr's-clean/-tabs/-draftfiles) or a
killed R process never reaches the live folders. What a failed or rejected
render produced is kept inreport/.failed/with aFAILEDfile giving the
reason (the next failure replaces it); a killed render's staging folder is
deleted by the next render.report/.previous/now only ever receives
delivered outputs, so a failure followed by another render no longer pushes
the last good outputs out of it, and moving the previous outputs there is
all or nothing instead of stopping half way. reportifyr's
<final>_docx_metadata.jsonis repointed from the staging folder to
report/final/(#81). --recalculate-fieldsand--resolve-same-page-crossrefsno longer hang
on macOS with LibreOffice 26.2 (every run timed out). A fresh profile
that already holds the seeded macro when LibreOffice first starts never
runs it, so the profile is now initialised first (--terminate_after_init)
and the macro added afterwards; a run then takes about two seconds (100 of
100 sequential and concurrent runs on macOS 26.6 / LibreOffice 26.2.5.2).
The macro also writes a heartbeat file as its first action, and a
LibreOffice that doesn't start it within half the timeout (at least 30
seconds;QUARTIFYR_SOFFICE_START_TIMEOUToverrides) is abandoned and
reported as unavailable instead of waiting out the full timeout. The profile
warm-up is counted against the timeout, not added to it. Not
re-tested on Windows or Linux (#84).- The two headless-LibreOffice steps (
--recalculate-fields,
--resolve-same-page-crossrefs) now work on Windows and with profile
paths that contain a space. The-env:UserInstallationprofile URL was
built asfile://<path>, which is malformed on Windows and breaks on a
space; it is now a properfile:///URI. A timeout now kills the whole
LibreOffice process tree on Windows too (taskkill /T /Fplus a sweep for
processes whose command line names the profile'sfile:///URL, which is how
LibreOffice shows it, never the plain path; the POSIX-only process-group kill raised there), and a
sofficethat still holds its temporary profile no longer turns a
timeout into aPermissionError. Both steps share one launcher
(quartifyr_styling/_soffice.py) (#86).
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).
v0.3.1
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).
v0.3.0
New features
- New
validate_header()checks a shell.qmd's front matter (and its
project's_quarto.yml) against every field this extension's Lua
filters andapply-layoutstep actually read, and prints a
cli-formatted report: what's provided, what's missing (required or
merely recommended), what else is available and what it does, and any
conflicts (title:/memo:both set, an unresolvable
header-format:placeholder, an unrecognizedcrossref-hyperlinks:
value, alogo:/bibliography:path that doesn't exist, ...). New
header_helper()interactively builds a front-matter block from the
same field catalog and copies (or prints) the result, ready to paste
into a new.qmd. Both are driven by one shared field registry, so a
field added to the extension only needs documenting in one place (#31). - New
styling_example_template()/styling_example_style()pull the
bundled reference-doc/default style YAML into a project (the latter
also returning its parsed content as a list, ready to edit), and new
styling_save_overrides()/styling_update_style()save an edited
style back out -- by default as just its diff from the base style
YAML, an override ready to deep-merge back on at load time -- or
deep-merge a targeted change onto an existing style YAML in place.
Each also available as aquartifyr-stylingCLI subcommand (#27). {{< appendix >}}'s designator style is now configurable document-wide
viaappendix-numbering:frontmatter (alphabetic(default) /arabic
/roman), instead of always lettering A/B/C (#26).- New scoped figure/table caption shortcodes --
appendix_fig_caption/appendix_tbl_caption,
section_fig_caption/section_tbl_caption(with a newsection_break
marker), andsubsection_fig_caption/subsection_tbl_caption(with a
newsubsection_breakmarker) -- number "Figure A1"/"Figure 3.1"/
"Figure 3.2.1" respectively, restarting within their scope instead of
running continuously through the whole document likequarto-plus's
ownfig_caption/tbl_caption. A newscoped_crossrefshortcode
resolves any of the six. Additive: nothing here changesquarto-plus's
own shortcodes, and an author can mix scoped and continuous captions
freely. Seeinst/extensions/quartifyr/README.md's "Scoped
figure/table numbering" section, including its known List of
Figures/Tables limitation (#26). - Style YAML: new
code:section (font_size,background_color,
padding_pt) styles pandoc'sSource Code/Verbatim Chardocx styles
for fenced code blocks/inline code, usingfonts.monospace(previously
declared but never actually applied anywhere -- now wired up). Defaults
match pandoc's own previous built-in fallback, so existing renders are
unaffected unless a style YAML opts into non-default values (#29). - Style YAML: new
equation.fontsets the docx-wide default math font
(applied bystyling_apply_layout()/render_report()'s newstyle/
overridearguments post-render, since pandoc's docx writer doesn't
carry this setting through from the reference-doc template). Font
family only -- an unstyled math run inherits its size from the
surrounding paragraph (#29). - Style YAML: new
heading.all_capsapplies an all-caps visual
transform (OOXMLw:caps) toHeading 1-6, leaving the underlying
heading text untouched (#29). - New
styling_sync_reportifyr_config()(quartifyr-styling sync-reportifyr-config) updates reportifyr's ownreport/config.yaml
footnotes_font/footnotes_font_sizeto match a style YAML's
fonts.body/fonts.sizes.footnote-- previously only kept in sync by
hand, per both bundled examples' ownconfig.yamlcomments. Requires
an interactive confirmation unlessyes = TRUEis passed; not run
automatically byrender_report()(#29). - New
inst/python/styles/schema.json-- a machine-readable JSON Schema
for the style YAML, for editor autocomplete/inline validation
(default.yamlnow carries a# yaml-language-server: $schema=...
header pointing at it). Guarded against drifting fromschema.pyby
tests/python/test_schema_json.py(#28).
Documentation
- The Styling
article gained a full style YAML reference table (every key, what it
controls, its default) and a real rendered default-vs-branded
comparison, generated by the new
scripts/render_style_option_gallery.pyfromexamples/demo-report's
actual content -- not a mockup.
Fixed
render_report()'sreference_docargument now defaults toNULL
instead of the bundled package template. When unset, it checks (via
quarto::quarto_inspect(), so it follows Quarto's own
frontmatter-over-_quarto.ymlmerge precedence) whether the project
already configures a docxreference-docand, if so, leaves it alone
instead of silently overriding it with the package default as before.
Only when neither sets one does it fall back to the package default,
now with aclinotice pointing atstyling_build_reference_docx()
(#30).
Breaking changes
- Removed the style YAML's
identity.org_name/identity.logo_pathkeys
-- confirmed dead: nothing read them (the actual title-page logo comes
from the.qmd's ownlogo:frontmatter). Delete them from any style
YAML that set them; they're a no-op removal otherwise (#28).
v0.2.4
Fixed
initialize_quartifyr_project()now catches failures from
pyro::initialize_python()and re-raises them with an explanation,
instead of letting pyro/uv's raw internal error propagate
uninterpreted (#46). On a project already initialized by reportifyr
before it depended on pyro (reportifyr < 0.4.0), that project's
Python environment predates pyro/uv and isn't necessarily something
uv synccan adopt as-is -- the error now points at re-running
reportifyr::initialize_report_project()first to bring the
environment up to a pyro-compatible state.
v0.2.3
Fixed
-
check_quarto_extensions()(called byrender_report()before every
render) now catches failures fromquarto::quarto_list_extensions()
and re-raises them with an explanation, instead of letting Quarto's own
raw internal error propagate uninterpreted.quarto list extensions
resolves a project's entire markdown as a side effect of listing
extensions -- not just its own output -- so a missing file referenced
by any.qmdin the project (e.g. a{{< include >}}pointing at a
file that wasn't copied over) could previously surface here as a
deeply nested, extensions-unrelated-looking error. -
Appendices past the first now show their correct letter in the ToC.
{{< appendix >}}'s native WordSEQ Appendix \* ALPHABETICfield
always cached its placeholder result as "A", so a document's ToC
(positioned earlier than the appendices, and built from each heading's
already-resolved text during a single field-update pass) could pick up
that stale "A" for appendix B, C, ... even though the heading itself
recalculated correctly. Each appendix's cached placeholder is now
pre-computed to its actual letter, so the ToC and the heading agree
even before any field recalculation happens.
v0.2.2
Fixed
initialize_quartifyr_project()no longer fails with uv's "Empty field
is not allowed for PEP508" on a project where it's the firstpyro-
based initializer to run (i.e. before
reportifyr::initialize_report_project()). The failure came from an
upstreampyroquirk: seeding a brand-newpyproject.tomlfor an
unrecognized dependency-group name ("quartifyr"isn't one ofpyro's
own bundled groups) rendered that group with a single spurious
empty-string dependency.initialize_quartifyr_project()now seeds a
minimalpyproject.tomlitself first, sopyronever has to.
v0.2.1
Added
check_quarto_extensions(), checking a project's installed Quarto
extensions (viaquarto::quarto_list_extensions()) against a new
formal registry,quartifyr_quarto_extensions-- currently just
A2-ai/quarto-plus, but a one-line addition away from covering any
future required/suggested extension. Reports anything missing with a
clickablequarto::quarto_add_extension()suggestion.
render_report()now calls this itself before rendering (erroring on
a missing required extension, with a specific actionable message,
instead of Quarto's own much less specific "could not find executable"
filter failure);install_quartifyr_extension()calls it too, as a
non-fatal warning-only nudge.
v0.2.0
Changed
- Restructured the repo from three independent components
(_extensions/quartifyr/,styling/,r/) into a single installable
R package (quartifyr) at the repo root, modeled on the sibling
deckifyrproject's architecture (issue #13):styling/moved toinst/python/and is now called from R via a
pyrobridge (R/run-python.R,styling_build_reference_docx()/
styling_apply_layout()/etc.) instead of shelling out to a
separately-managed CLI binary path; it's still independently
pip/uv-installable asquartifyr-stylingfrom the same source tree
(repo-rootpyproject.toml)._extensions/quartifyr/moved toinst/extensions/quartifyr/,
installable via the newinstall_quartifyr_extension()or still via
quarto add jprybylski/quartifyr.r/'srender_report()is nowquartifyr::render_report(), a real
exported function rather than asource()d script; thetoolkit_root/
venv_binparameters are gone (the package resolves its own bundled
assets viasystem.file()).r/render.R's CLI wrapper is gone;
examples/*/render.Rnowlibrary(quartifyr)instead ofsource()-ing
a sibling file.- New:
initialize_quartifyr_project(), provisioning a report project's
quartifyrpyro dependency group (call once per project, alongside
reportifyr::initialize_report_project()). - The
quartifyrR package itself is notrenv-managed (no
renv.lockat the package root); install it into a report project's
own renv library withrenv::install("jprybylski/quartifyr"). templates/org-reference.docxmoved toinst/templates/.
- Docs site moved from a hand-authored Jekyll site (
docs/as source) to
pkgdown: narrative pages are now
vignettes/articles/*.Rmd, function reference is generated from
roxygen comments, anddocs/itself is pure build output (no longer
committed). Terminal-recording GIFs/screenshots moved from
docs/assets/img/toman/figures/; VHS recipes moved from
docs/assets/tapes/todev/tapes/. - Release automation ported from
deckifyr's sibling project
xpose.xtras: aVERSIONfile at the repo root drives
.github/workflows/release.yaml, which syncsDESCRIPTION's
Versionand this file's own heading structure, tags, and publishes a
GitHub release on push tomain(.github/scripts/ sync-release-metadata.R). Never touches CRAN.CHANGELOG.md(Keep a
Changelog format) is retired in favor of this file, the format the
release automation and pkgdown's News page both expect natively. DESCRIPTIONgainedDepends: R (>= 4.1.0), matchingreportifyr/
pyro's own floor (both already require it) -- not an arbitrary
style constraint, so native pipes (|>) and lambda shorthand
(\(...)) are fine to use in this package's own R code.
Added
action.yml: a reusable composite GitHub Action wrapping
render_report(), so another repo can render its report (and upload
the result as a workflow artifact) without hand-rolling the Quarto/R/
reportifyrsetup steps itself. See
the GitHub Action article
(issue #9). Itsreference-docinput lets an external caller point a
render at an org's own reference-doc instead of quartifyr's bundled
default.