Skip to contents

Checking that current working directory has the sub-directories: DATA_Iowa_activPAL, DATA_Pitt_activPAL, and DATA_WVU_activPAL, which contains all raw sleep diary and ActivPAL data.

Usage

check_dir(path = ".")

Arguments

path

A character vector of full path names; the default corresponds to the working directory, getwd(). Also, path sets the working directory with setwd(path).

Value

Error message is returned if current working directory does not have the appropriate sub-directories else nothing is returned.

See also

Examples

# check_dir() # works if current directory has sub-directories
# check_dir(path = ".") # works if current directory has sub-directories
# check_dir(path = "../") # error by moving out of current directory