powered by
Verify if the dir is the work directory
chk_workdir(dir, top_dir = NULL, sub_dir = "myRepo")
a work directory; default to '/Users/user for Mac; "c:/tmp" for Windows
a top or root directory; default to '/Users/user for Mac or getwd for other OS
a sub directory
TRUE or FALSE
# NOT RUN { f1 <- tempdir() r1 <- chk_workdir(f1) # }
Run the code above in your browser using DataLab