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 for data analysis in R

Usage

get_template(
  to = "R/templates",
  overwrite = FALSE,
  main_script = FALSE,
  raw_script = FALSE,
  score_script = FALSE,
  merge_script = FALSE,
  analysis_script = 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

path

String. working directory file path. Ignore...


dr-JT/workflow documentation built on March 19, 2024, 7:51 p.m.