Learn R Programming

D4TAlink.light (version 2.1.18)

initTask: Initialize a task

Description

During the initialization:

  • The folder structure for the task is created in the data repository.

  • The task properties are also saved in rds and json format.

Please note that it is recommended to load packages for your analysis before initializing the task.

Usage

initTask(
  project,
  package,
  taskname,
  sponsor = getTaskSponsor(),
  author = getTaskAuthor(),
  dirCreate = TRUE,
  templateCreate = FALSE,
  overwrite = FALSE
)

Value

D4TAlinkTask object

Arguments

project

Project name.

package

Package name.

taskname

Task name.

sponsor

Sponsor name, default set by setTaskSponsor.

author

Author name, system username by default.

dirCreate

logical, if TRUE (by default) the directory structure for the task is created in the repository.

templateCreate

create the prefilled Rmd template for the task, default value: FALSE.

overwrite

logical, if TRUE and the task already exists, overwrite its parameters.