check_dir: Directory check

View source: R/check_dir.R

check_dirR Documentation

Directory check

Description

Check that

  1. The user knows that the data will not be saved if dir = NULL.

  2. The directory exists if it can be created.

  3. The function fails if the directory cannot be created.

Usage

check_dir(dir, verbose = TRUE)

Arguments

dir

directory where ouptut will be saved. The directory where the file should be saved. If dir = NULL no output will be saved.

verbose

A logical that specifies if you want to print messages and warnings to the console. The default is TRUE.

Author(s)

Chantel R. Wetzel

Examples

check_dir(getwd(), verbose = FALSE)
# See more output
check_dir(getwd())


nwfsc-assess/nwfscSurvey documentation built on April 29, 2024, 9:51 p.m.