Create and optionally run a self-contained demo project via Quarto
Source:R/demo_run.R
run_demo_openalex.RdSets up a demo workspace under demo_dir, creates a pipeline project under
demo_dir/project, copies small corpus and
reference fixtures and Quarto template from inst/ovc_demo, and optionally
renders the analysis.
Arguments
- demo_dir
Demo workspace directory. Defaults to
file.path(getwd(), "demos", "openalex").- render
Logical; if
TRUE(default), runquarto renderon the copied template.- backend
Optional backend config from
backend_config(). IfNULL, defaults to Hugging Face (provider = "hf", model"BAAI/bge-small-en-v1.5").- max_corpus
Maximum number of corpus fixture rows to copy.
- max_reference
Maximum number of reference fixture rows to copy.
- overwrite
Logical; if
FALSE(default), stop when demo-managed files already exist. IfTRUE, refresh demo-managed files.- quarto_file
Name of the analysis file created in
demo_dir.- verbose
Logical; print progress messages.