if (FALSE) {
# Track a downloaded dataset
track_data("data/mydata.csv",
source = "downloaded",
source_url = "https://example.com/data.csv",
description = "Customer data from API",
registry_file = tempfile(fileext = ".json")
)
# Track generated data
track_data("results/simulation.rds",
source = "generated",
description = "Monte Carlo simulation results",
registry_file = tempfile(fileext = ".json")
)
# Track large file with fast hashing
track_data("data/large_file.bam",
source = "generated",
fast_hash = TRUE,
registry_file = tempfile(fileext = ".json")
)
}
Run the code above in your browser using DataLab