Skip to contents

Returned in a deterministic order, and named so a single full run (bagging.rds) and a chunked run never collide.

Usage

boot_chunk_files(out_dir, prefix = "bagging")

Arguments

out_dir

Directory to look in.

prefix

File-name prefix the runner used.

Value

A sorted character vector of full paths, possibly empty.

Examples

out_dir <- file.path(tempdir(), "boot-chunk-files-example")
dir.create(out_dir)
invisible(file.create(file.path(out_dir, c(
  "bagging.chunk2.rds", "bagging.chunk1.rds", "bagging.rds", "notes.txt"
))))
basename(boot_chunk_files(out_dir))
#> [1] "bagging.chunk1.rds" "bagging.chunk2.rds"
unlink(out_dir, recursive = TRUE)