tests/testthat/examples/shared-dir/shared-dir.R

orderly::orderly_shared_resource(shared_data = "data")
orderly::orderly_artefact("output.rds", description = "combined data")

files <- dir("shared_data")
dat <- lapply(file.path("shared_data", files), read.csv)
names(dat) <- sub("\\..+$", "", files)
saveRDS(dat, "output.rds")

Try the orderly package in your browser

Any scripts or data that you put into this service are public.

orderly documentation built on Jan. 24, 2026, 1:07 a.m.