Update the checksums of all endpoints in a WORCS project.
Examples
# Create directory to run the example
old_wd <- getwd()
test_dir <- file.path(tempdir(), "update_endpoint")
dir.create(test_dir)
setwd(test_dir)
file.create(".worcs")
#> [1] TRUE
writeLines("test", "test.txt")
add_endpoint("test.txt")
#> ℹ Adding endpoint "test.txt" to '.worcs'.
#> ✔ Adding endpoint "test.txt" to '.worcs'. ... done
#>
writeLines("second test", "test.txt")
snapshot_endpoints()
#> ℹ Update snapshot of endpoint "test.txt".
#> ✔ Update snapshot of endpoint "test.txt". ... done
#>
# Cleaning example directory
setwd(old_wd)
unlink(test_dir, recursive = TRUE)