Skip to contents

There are two basic type of template files, one descriptive and one with models. These are based on the exploration and testing of the data towards our publicised manuscripts and reports. To run the "model" documents, the corresponding "descriptive" document for that paper must have been previously run.

Usage

gbhs_path_rmd(type = "descriptives", paper = 1, destination = NULL)

Source

This function is adapted from readxl::readxl_example().

Arguments

type

either "descriptive" (default) or "model"

paper

an integer of either 1,2 or 3.

destination

optional string indicating where to copy the file to

Value

string of file path

Examples

gbhs_path_rmd()
#> [1] "/home/runner/work/_temp/Library/gbhs/docs/paper1/descriptives.Rmd"
gbhs_path_rmd("descriptive", 2)
#> [1] "/home/runner/work/_temp/Library/gbhs/docs/paper2/descriptives.Rmd"
gbhs_path_rmd("model", 3)
#> [1] "/home/runner/work/_temp/Library/gbhs/docs/paper3/models.Rmd"