spec_check will throw an error if a feature is being used that is not supported yet. feature_check will throw an error if a feature is not being used, even though it is required by the spec version being used.

spec_check(
  introduced_version,
  feature,
  exception_type = c("stop", "warning", "message")
)

feature_check(introduced_version, feature)

Arguments

introduced_version

string with the version of the spec (e.g. "0.0.5")

feature

free-form text describing the feature

exception_type

what type of exception to throw if the check is not passed

Value

No return value. Called to get specific error messages when required.