crt_workdir: Create work directory

View source: R/crt_workdir.R

crt_workdirR Documentation

Create work directory

Description

define and create a work directory.

Usage

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

## Not run: 
  d1 <- tempdir()
  r1 <- crt_workdir(d1)
  r2 <- crt_workdir(d1, to_crt_dir = FALSE) # just return the dir

## End(Not run)

TuCai/phuse documentation built on Sept. 2, 2022, 5:17 a.m.