assert_dtc_format: Assert dtc format

View source: R/dtc_utils.R

assert_dtc_formatR Documentation

Assert dtc format

Description

assert_dtc_format() is an internal helper function aiding with the checking of the .format parameter of create_iso8601().

Usage

assert_dtc_format(.format)

Arguments

.format

The argument of create_iso8601()'s .format parameter.

Value

This function throws an error if .format is not either:

  • A character vector of formats permitted by assert_dtc_fmt();

  • A list of character vectors of formats permitted by assert_dtc_fmt().

Otherwise, it returns .format invisibly.


sdtm.oak documentation built on June 9, 2025, 5:10 p.m.