use_dsprrr_template() copies starter files for running dsprrr in a
pipeline: a targets pipeline (_targets.R) that prepares data, optimizes
and evaluates a module and pins the results, and a Quarto report
(report.qmd). Edit the copies to fit your project.
Usage
use_dsprrr_template(
template = c("targets", "quarto", "all"),
path = ".",
overwrite = FALSE
)See also
Other integrations:
as_dsprrr_metric(),
as_dsprrr_traces(),
as_ellmer_tool(),
as_vitals_cost(),
as_vitals_samples(),
as_vitals_solver(),
as_vitals_task(),
create_search_tool(),
llm_predict(),
ragnar_tool(),
reasoning_effort(),
register_dsprrr_engine(),
summarize_traces_df(),
temperature(),
top_p(),
validate_workflow(),
vitals_metrics
Examples
project <- file.path(tempdir(), "my-project")
use_dsprrr_template("targets", path = project)
#> Created: /tmp/Rtmp4xxnp9/my-project/_targets.R
list.files(project)
#> [1] "_targets.R"