% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download.R
\name{cblib_download_all}
\alias{cblib_download_all}
\title{Download All CBLIB Instances}
\usage{
cblib_download_all(
  folder,
  url = .CBLIB_DOWNLOAD_ALL_URL,
  method = NULL,
  quiet = TRUE,
  force = FALSE,
  decompress = TRUE,
  keep_archive = !decompress
)
}
\arguments{
\item{folder}{Character string. Destination directory. No default is
provided; pass \code{tempdir()} for a temporary location.}

\item{url}{Character string. Base URL of the CBLIB download directory.}

\item{method}{Character string passed to \code{\link[utils]{download.file}}.}

\item{quiet}{Logical. Passed to \code{\link[utils]{download.file}}.}

\item{force}{Logical. If \code{TRUE}, download again even if the target file
already exists.}

\item{decompress}{Logical. If \code{TRUE} (default), decompress the archive
to \code{.cbf} after download.}

\item{keep_archive}{Logical. If \code{TRUE}, keep the downloaded
\code{.cbf.gz} archive after decompression.}
}
\value{
Named character vector of downloaded file paths. Names are the CBLIB
  archive file names listed in the index.
}
\description{
Downloads every \code{.cbf.gz} instance linked from
\url{https://cblib.zib.de/download/all/}. By default each archive is
decompressed to a plain \code{.cbf} file.
}
\details{
According to the CBLIB download README, the complete collection is intended
to be fetched recursively from the \code{/download/all/} directory. This
helper first reads that index page, extracts all linked \code{.cbf.gz}
archives, and then downloads them one by one.
}
\examples{
\dontrun{
paths <- cblib_download_all(folder = tempdir())
}

}
\seealso{
\code{\link{cblib_download}}, \code{\link{read_cbf}}
}
