Learn R Programming

phuse (version 0.2.2)

crt_workdir: 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

Examples

Run this code
# 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