R/MET.R

Defines functions MET

Documented in MET

#' MET
#'
#' This function defines a Healthy/Unhealty Music Scale (MET) module for incorporation into a
#' psychTestR timeline.
#' Use this function if you want to include the MET in a
#' battery of other tests, or if you want to add custom psychTestR
#' pages to your test timeline.
#' For a standalone implementation of the MET,
#' consider using \code{\link{MET_standalone}()}.
#' @param label (Character scalar) Three uppercase letter acronym of the questionnaire.
#' This is also the label given to the results in the output file.
#' @param dict (i18n_dict) The psyquest dictionary used for internationalisation.
#' @param ... Further arguments to be passed to \code{\link{MET}()}.
#' @export
MET <- function(label = "MET",
                dict = psyquest::psyquest_dict,
                ...) {
  stopifnot(purrr::is_scalar_character(label))

  questionnaire_id <- "MET"

  main_test(
    questionnaire_id = questionnaire_id,
    label = label,
    items = get_items(questionnaire_id),
    offset = 1,
    arrange_vertically = FALSE,
    button_style = "min-width: 290px",
    style_params = list(...)$style_params,
    dict = dict
  )
}
klausfrieler/psyquest documentation built on Feb. 24, 2025, 11:20 p.m.