setTaskStructure {D4TAlink.light}R Documentation

Set task repository directory structure.

Description

Set task repository directory structure.

Usage

setTaskStructure(pathgen)

Arguments

pathgen

optional function returning a list of paths, currently pathsGLPG or pathsPMS.

Value

The task directory structure function invisibly.

Examples

fun <- function(project,package,taskname,sponsor) {
  basePath <- file.path("%ROOT%",sponsor,project,package)
  list(
    root = "%ROOT%",
    datasrc = file.path(basePath, "raw", "data_source"),
    data = file.path(basePath, "output","adhoc",taskname),
    bin  = file.path(basePath, "output","adhoc",taskname,"bin"),
    code = file.path(basePath, "progs"),
    doc  = file.path(basePath, "docs"),
    log  = file.path(basePath, "output","log")
  )
}
setTaskStructure(fun)

[Package D4TAlink.light version 2.1.14 Index]