get_template: Download R Script Templates

View source: R/get_template.R

get_templateR Documentation

Download R Script Templates

Description

This function will download template scripts

Usage

get_template(
  to = "R/templates",
  overwrite = FALSE,
  main_script = FALSE,
  raw_script = FALSE,
  score_script = FALSE,
  merge_script = FALSE,
  analysis_script = FALSE,
  wmc_scripts = FALSE,
  ac_scripts = FALSE,
  path = "."
)

Arguments

to

a directory where to download R scripts. default: "R/templates". For analysis_script will change to "analyses/templates" if the "analyses folder exists.

overwrite

Logical. Overwite any existing templates? default: FALSE

main_script

Logical. Download a main script template to source all other R scripts?

raw_script

Logical. Download template to convert a "messy" raw data file to a "tidy" raw data file? default = FALSE

score_script

Logical. Download template to perform data cleaning and scoring on a "tidy" raw data file? default = FALSE

merge_script

Logical. Download template to merge multiple scored data files? default = FALSE

analysis_script

Logical. Download template to do data analysis (.Rmd)? default = FALSE

wmc_scripts

Logical. Download all working memory capacity (WMC) task scripts

ac_scripts

Logical. Download all attention control (AC) task scripts

path

String. working directory file path. Ignore...


EngleLab/englelab documentation built on Sept. 9, 2024, 4:12 a.m.