joeroe / era

R package for year-based time scales

Home Page:https://era.joeroe.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yr() does not check whether era is an era

joeroe opened this issue · comments

Because using vec_assert has a puzzling result:

vctrs::vec_assert(era::era("BP"), era:::new_era())
#> Error: `era::era("BP")` must be a vector with type <era>.
#> Instead, it has type <era>.