% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mirror.R \name{cog_mirror} \alias{cog_mirror} \title{Mirror the published corpus to a local directory} \usage{ cog_mirror( dest, include = c("long", "metadata", "docs"), overwrite = FALSE, progress = interactive() ) } \arguments{ \item{dest}{Destination directory. Created if missing.} \item{include}{Subset of \code{c("long", "metadata", "docs")} controlling which manifest sections to mirror.} \item{overwrite}{If \code{TRUE}, re-copy even when the local SHA matches.} \item{progress}{If \code{TRUE}, show a cli progress bar.} } \value{ Invisibly, a tibble of \verb{(path, sha256, size_bytes, status)} rows where \code{status} is \code{"downloaded"} or \code{"cached"}. } \description{ Downloads (or copies, for local-path fixture URLs) every file listed in the session's \code{manifest.json} into \code{dest}, preserving the relative path structure. Files already present with a matching SHA-256 hash are skipped unless \code{overwrite = TRUE}. The resulting directory can be pointed at via \code{options(uscogdata.url = paste0(dest, "/"))} for offline analysis. }