Skip to contents

This sources all code files constructed by define_design()

Usage

source_design(
  d,
  rel_dir = "code",
  one_file = FALSE,
  one_file_name = "design_steps.R"
)

Arguments

d

A character vector of the research design steps function names

rel_dir

The relative path to your code directory, defaults to "code"

one_file

If TRUE, then all step code is expected to be in a file with the name one_file_name. If FALSE (the default), each step code is expected to be in a separate file with the step name as file name.

one_file_name

The name of the code file containing the code if all step code is in one file. Defaults to "design_steps.R".

Value

The result of the source() command.

Details

See the vignette of the package for further details.

Examples

if (FALSE) {
  print("Sorry. No examples yet.")
}