R/write_question_file.R

Defines functions write_question_file

write_question_file <- function(question, responseOptions, questionType = "Question:MC:Dropdown"){
  question <- paste0("[[", questionType, "]]\n", question, "\n[[Choices]]\n", paste0(responseOptions, collapse = "\n"))
  return(question)
}
essentialols/fbsamplR documentation built on Dec. 20, 2021, 6:39 a.m.