% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/target-import.R
\name{wf_target_template}
\alias{wf_target_template}
\title{Create a safe external-target import template}
\usage{
wf_target_template(file, dims, by = NULL, example = FALSE)
}
\arguments{
\item{file}{Output path ending in \code{.csv} or \code{.xlsx}.}

\item{dims}{A \code{wf_dims} object with declared levels when \code{example = TRUE}.}

\item{by}{Optional grouping-column name.}

\item{example}{Whether to write synthetic, demo-only rows instead of a blank
template.}
}
\value{
Invisibly, a list with \code{data_file} and \code{source_file} paths.
}
\description{
Writes a CSV or Excel data template and a separate companion DCF source
record. The source filename appends \code{.source.dcf} to the complete data
filename so CSV and Excel files cannot accidentally share a checksum.
}
