Learn R Programming

phuse (version 0.2.2)

chk_workdir: Verify work directory

Description

Verify if the dir is the work directory

Usage

chk_workdir(dir, top_dir = NULL, sub_dir = "myRepo")

Arguments

dir

a work directory; default to '/Users/user for Mac; "c:/tmp" for Windows

top_dir

a top or root directory; default to '/Users/user for Mac or getwd for other OS

sub_dir

a sub directory

Value

TRUE or FALSE

Examples

Run this code
# NOT RUN {
  f1 <- tempdir()
  r1 <- chk_workdir(f1)
# }

Run the code above in your browser using DataLab