real_file <- system.file("DESCRIPTION", package = "assertions")
try({
assert_file_does_not_exist("foo") # Passes
assert_file_does_not_exist(real_file) # Throws error
assert_file_does_not_exist(c("foo", "bar")) # Throws Error (single file only)
})
Run the code above in your browser using DataLab