check_wd: Check whether a file exists

View source: R/check-wd.R

check_wdR Documentation

Check whether a file exists

Description

Check whether a file exists

Usage

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

## Not run: 
# Example 1 solution code:
# write("hello", file = "test.txt")

# SCT
ex() %>% check_wd("test.txt")

## End(Not run)

Data-Camp/testwhat documentation built on June 24, 2022, 9:59 p.m.