Skip to contents

Delegates to quartifyr-styling recalculate-fields in the bundled Python engine, via headless LibreOffice. Experimental and known-flaky: real runs against the same document have produced three different outcomes (hang, silent no-op, success), reproduced both sandboxed and in a plain terminal. Don't treat a clean return as proof it worked.

Usage

styling_recalculate_fields(docx, timeout = 120, soffice_bin = NULL)

Arguments

docx

Path to the docx to recalculate (modified in place).

timeout

Timeout in seconds (default 120).

soffice_bin

Path to the LibreOffice executable. NULL (default) uses the QUARTIFYR_SOFFICE_BIN environment variable if set, else soffice on PATH.

Value

The docx path (invisibly).

Examples

if (FALSE) { # \dontrun{
# Requires a provisioned quartifyr Python environment and LibreOffice
# (soffice) on PATH -- experimental and known-flaky, see above.
styling_recalculate_fields("report/final/report-final.docx")
} # }