# NOT RUN {
tempdir <- tempdir()
setwd(tempdir)
dir.create("test0")
setwd("test0")
initProject()
list.files(all.files = TRUE)
setwd(tempdir)
dir.create("test1")
setwd("test1")
## demonstrate ability to create other directories
initProject(admin = "admin", clientfiles = "client")
list.files(all.files = TRUE)
setwd(tempdir)
dir.create("test2/R", recursive = TRUE)
setwd("test2/R")
initProject(adir = "accounting")
list.files(all.files = TRUE)
list.files("../", all.files = TRUE)
setwd(tempdir)
initProject("test3")
list.files("test3", all.files = TRUE)
setwd(tempdir)
## demonstrate ability to create other directories
initProject(file.path(tempdir, "test4"),
list(mdir = "Mplus", sasdir = "SAS"))
list.files(file.path(tempdir, "test4"), all.files = TRUE)
setwd(tempdir)
## demonstrate ability to nullify standard directories
initProject("test5", odir = NA, tdir = NA, writedir = NA)
list.files("test5", all.files = TRUE)
unlink(c("test1", "test2", "test3", "test4", "test5"), recursive = TRUE)
# }
Run the code above in your browser using DataLab