data-raw/matrix-reasoning/matrix-reasoning-doc-builder.R

## Template generation ----
template_location = file.path("man-roxygen", "var-docs-matrix-reasoning.R")
data_raw_location = file.path("data-raw", "matrix-reasoning")

question_ids = paste0("Q",seq_len(25))

## Write to documentation template ----
writeLines("#' @details
#'
#' Items included:",
  template_location
)

write(
  paste0("#' - `", question_ids,"`", collapse="\n"),
  template_location,
  append = TRUE
  )
tmsalab/ecdmdata documentation built on Nov. 10, 2021, 4:45 a.m.