Check whether a file exists

check_wd(state, path, missing_msg = NULL)

Arguments

state

the state to start from

path

Path to the file you want to check

missing_msg

Custom feedback message in case the file is missing

Examples

if (FALSE) { # Example 1 solution code: # write("hello", file = "test.txt") # SCT ex() %>% check_wd("test.txt") }