% 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 `c("long", "metadata", "docs")` controlling which manifest sections to mirror.} \item{overwrite}{If `TRUE`, re-copy even when the local SHA matches.} \item{progress}{If `TRUE`, show a cli progress bar.} } \value{ Invisibly, a tibble of `(path, sha256, size_bytes, status)` rows where `status` is `"downloaded"` or `"cached"`. } \description{ Downloads (or copies, for local-path fixture URLs) every file listed in the session's `manifest.json` into `dest`, preserving the relative path structure. Files already present with a matching SHA-256 hash are skipped unless `overwrite = TRUE`. The resulting directory can be pointed at via `options(uscogdata.url = paste0(dest, "/"))` for offline analysis. }