Validate nameStyle argument. If any of the element in ... has length greater than 1 it must be contained in nameStyle. Note that snake case notation is used.
      Source: R/validate.R
      validateNameStyle.RdValidate nameStyle argument. If any of the element in ... has length
greater than 1 it must be contained in nameStyle. Note that snake case
notation is used.
Usage
validateNameStyle(nameStyle, ..., call = parent.frame())Arguments
- nameStyle
 A character vector. It must contain all the
...elements in snake_case format and between{}.- ...
 Elements to be included.
- call
 Passed to cli functions.
Examples
validateNameStyle(
  nameStyle = "hi_{cohort_name}",
  cohortName = c("cohort1", "cohort2"),
  otherVariable = c("only 1 value")
)
if (FALSE) { # \dontrun{
validateNameStyle(
  nameStyle = "hi_{cohort_name}",
  cohortName = c("cohort1", "cohort2"),
  otherVariable = c("value1", "value2")
)
} # }
validateNameStyle(
  nameStyle = "{other_variable}_hi_{cohort_name}",
  cohortName = c("cohort1", "cohort2"),
  otherVariable = c("value1", "value2")
)