Description Usage Arguments Value Author(s) Examples
define and create a work directory.
1 | crt_workdir(top_dir = NULL, sub_dir = "myRepo", to_crt_dir = TRUE)
|
top_dir |
a top or root directory; default to '/Users/user for Mac or getwd for other OS |
sub_dir |
a sub directory |
to_crt_dir |
whether to create the dir; default to TRUE. If FALSE, just return the dir name |
the created directory
Hanming Tu
1 2 3 4 5 6 | ## Not run:
d1 <- tempdir()
r1 <- crt_workdir(d1)
r2 <- crt_workdir(d1, to_crt_dir = FALSE) # just return the dir
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.