create_new_task: Create a new prepare_TASK.R file using prepare_TEMPLATE.R and...

create_new_taskR Documentation

Create a new prepare_TASK.R file using prepare_TEMPLATE.R and replacing TEMPLATE by the short name of the new task All new task should be created using this template and then adapted as needed.

Description

Create a new prepare_TASK.R file using prepare_TEMPLATE.R and replacing TEMPLATE by the short name of the new task All new task should be created using this template and then adapted as needed.

Usage

create_new_task(
  short_name_task,
  overwrite = FALSE,
  get_info_googledoc = FALSE,
  destination = "R_tasks"
)

Arguments

short_name_task

short name of the task

overwrite

If the prepare_TASK is already present, should overwrite? FALSE / TRUE

get_info_googledoc

If TRUE, uses get_dimensions_googledoc() to get the task correction information from the jsPsychR GoogleSheets, giving you pre-prepared code for the different sections FALSE / TRUE

destination

By default is "R_tasks"

Value

Creates a R_tasks/prepare_TASK.R using the prepare_TEMPLATE.R


gorkang/jsPsychHelpeR documentation built on Oct. 15, 2024, 8 a.m.