Skip to contents

Scans the input directory for .dvc pointer files and downloads each corresponding data file from the public Cloudflare R2 remote, preserving the subdirectory structure. No credentials are required since the remote is publicly accessible.

Usage

dvc_download_all(input_dir, output_dir, overwrite = FALSE, pkg_nm = "nemo")

Arguments

input_dir

Path to the input directory to search for DVC files.

output_dir

Path to the output directory.

overwrite

Logical. If FALSE, skip files that already exist.

pkg_nm

Package name, used to point to the Cloudflare R2 bucket of interest.

Value

Invisibly returns a character vector of paths to downloaded files.

Examples

if (FALSE) { # \dontrun{
input_dir <- system.file("extdata/dvc-example", package = "nemo")
output_dir <- file.path(tempdir(), "dvc_dl_test")
result <- dvc_download_all(input_dir, output_dir)
result_cached <- dvc_download_all(input_dir, output_dir)
} # }