% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/target-import.R
\name{wf_import_reference}
\alias{wf_import_reference}
\title{Import a verified external reference-sample target}
\usage{
wf_import_reference(
  data_file,
  source_file,
  dims,
  feature,
  by = NULL,
  production = TRUE
)
}
\arguments{
\item{data_file}{Path to a CSV or XLSX reference sample.}

\item{source_file}{Path to its companion source DCF record.}

\item{dims}{A \code{wf_dims} object.}

\item{feature}{Name of the reciprocal-design-weight column.}

\item{by}{Optional grouping variable.}

\item{production}{Whether to reject demo-only sources.}
}
\value{
A \code{wf_verified_target} object.
}
\description{
Imports an external reference sample only when every file column has a
declared design role and the companion DCF record passes the provenance and
checksum checks.
}
