What it says on the tin.
parse_iso_8601(c("2020-03", "2020"))
yields the following warning:
Warning message: In NextMethod(.Generic) : number of items to replace is not a multiple of replacement length
The same does not happen if the vector contains only YYYY dates or no YYYY dates. I've only tried with YYYY, YYYY-mm, YYYY-mm-dd, so presumably others may also cause the same warning.
What it says on the tin.
parse_iso_8601(c("2020-03", "2020"))
yields the following warning:Warning message: In NextMethod(.Generic) : number of items to replace is not a multiple of replacement length
The same does not happen if the vector contains only YYYY dates or no YYYY dates. I've only tried with YYYY, YYYY-mm, YYYY-mm-dd, so presumably others may also cause the same warning.