Skip to contents

reportifyr doesn't read quartifyr's style YAML at all – its own report/config.yaml scaffolds footnotes_font/footnotes_font_size independently (defaulting to "Arial Narrow"/10), so left untouched they visually clash with whatever fonts.body/fonts.sizes.footnote a style YAML sets for the rest of the document. This updates just those two keys to match.

Usage

styling_sync_reportifyr_config(
  style,
  override = NULL,
  config_yaml = "report/config.yaml",
  yes = FALSE
)

Arguments

style

Path to the base style YAML.

override

Optional per-org/per-project style YAML, deep-merged over style. NULL (default) to skip.

config_yaml

Path to reportifyr's config.yaml, modified in place.

yes

Skip the confirmation requirement and write directly.

Value

TRUE if config_yaml was changed, FALSE if it was already in sync (invisibly).

Details

Requires an interactive y/yes confirmation before writing unless yes = TRUE is passed – there's no live stdin to confirm over via this R wrapper (it always calls the underlying CLI with --json, a non-interactive/piped invocation), so yes = TRUE is required whenever config_yaml's footnote keys are actually out of sync; a call that finds nothing to change succeeds either way.

Examples

if (FALSE) { # \dontrun{
# Requires a provisioned quartifyr Python environment and an existing
# reportifyr report/config.yaml (see reportifyr::initialize_report_project()).
styling_sync_reportifyr_config("style.yaml", config_yaml = "report/config.yaml", yes = TRUE)
} # }