You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with tib_custom() forwarding to tib_scalar() but with different defaults (in particular, ptype_inner = character() and transform required, perhaps ptype optional)?
I don't think we need tib_custom() for this. We could simply change tib_scalar() a little, e.g. adding
if (is_missing(ptype)) {
if (is_missing(ptype_inner) || is_null(ptype_inner) || is_null(transform)) {
cli_abort("Must provide {.arg ptype} or both of {.arg ptype_inner} and {.arg transform}.")
}
ptype<- transform(ptype_inner)
}
For ingesting a datetime field, I use:
Should we support
with
tib_custom()
forwarding totib_scalar()
but with different defaults (in particular,ptype_inner = character()
andtransform
required, perhapsptype
optional)?Created on 2023-05-26 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: