setTaskStructure | R Documentation |
Set task repository directory structure.
setTaskStructure(pathgen)
pathgen |
optional function returning a list of paths, currently |
The task directory structure function invisibly.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.