powered by
define and create a work directory.
crt_workdir(top_dir = NULL, sub_dir = "myRepo", to_crt_dir = TRUE)
a top or root directory; default to '/Users/user for Mac or getwd for other OS
a sub directory
whether to create the dir; default to TRUE. If FALSE, just return the dir name
the created directory
# NOT RUN { d1 <- tempdir() r1 <- crt_workdir(d1) r2 <- crt_workdir(d1, to_crt_dir = FALSE) # just return the dir # }
Run the code above in your browser using DataLab