Inventory Study Source Files Without Changing Them
Examples
src <- tempfile("pressr-study-")
dir.create(src)
writeLines(c("time,s1", "0,1"), file.path(src, "trial.csv"))
writeLines("Trial notes", file.path(src, "notes.txt"))
pr_inventory(src)
#> # A tibble: 2 × 6
#> path relative_path bytes role sha256 duplicate_content
#> <chr> <chr> <dbl> <chr> <chr> <lgl>
#> 1 /tmp/RtmpAvtDYT/pressr-stu… notes.txt 12 meas… 9d647… FALSE
#> 2 /tmp/RtmpAvtDYT/pressr-stu… trial.csv 12 meas… 59b2d… FALSE
unlink(src, recursive = TRUE)