crt_workdir: Create work directory

Description Usage Arguments Value Author(s) Examples

View source: R/crt_workdir.R

Description

define and create a work directory.

Usage

1
crt_workdir(top_dir = NULL, sub_dir = "myRepo", to_crt_dir = TRUE)

Arguments

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

Value

the created directory

Author(s)

Hanming Tu

Examples

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)

phuse documentation built on Sept. 21, 2018, 6:35 p.m.