Files
uscogdata/man/cog_mirror.Rd
T
Claude 19b5b02d2f docs: render the roxygen markdown the reference pages are written in
The roxygen comments use markdown (**bold**, `code`, [cog_x()] links,
bullet lists) but DESCRIPTION had no `Roxygen: list(markdown = TRUE)`,
so the generated .Rd files carried that syntax literally. It also meant
a bare `%` started an Rd comment and silently cut the rest of its line
from seven places in the rendered pages, including "7% of the no-filter
floor", "-32.7% to +251.0% across 24 years" and the `filter(role %in%
...)` line of cog_peer_compare()'s example.

Adds the setting and regenerates man/ with roxygen2 7.3.3 (matching
RoxygenNote). The only source change is escaping one literal
"[min year, max year]" in an @noRd block in R/balance_caveats.R, which
markdown mode otherwise reads as a link. No wording or code changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qbe6u2h83wgZdTgJgE4Xh5
2026-11-04 20:21:24 +00:00

36 lines
1.1 KiB
R

% 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.
}