
Last chance! 50% off unlimited learning
Sale ends in
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.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.
validateNameStyle(nameStyle, ..., call = parent.frame())
invisible nameStyle.
A character vector. It must contain all the ...
elements
in snake_case format and between {}
.
Elements to be included.
Passed to cli functions.
validateNameStyle(
nameStyle = "hi_{cohort_name}",
cohortName = c("cohort1", "cohort2"),
otherVariable = c("only 1 value")
)
if (FALSE) {
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")
)
Run the code above in your browser using DataLab