epiverse-trace / linelist

R package for handling linelist data
https://epiverse-trace.github.io/linelist/
Other
8 stars 4 forks source link

methods may need to pass through an appropriate `strict` argument to `modify_defaults()` #63

Closed TimTaylor closed 1 year ago

TimTaylor commented 1 year ago

Please place an "x" in all the boxes that apply


library(linelist)
dat <- data.frame(a=1)
ll <- make_linelist(dat, a = "a", allow_extra = TRUE)
ll["a"]
#> Error in modify_defaults(tags_defaults(), new_tags): Unknown variable types: a
#>   Use only tags listed in `tags_names()`, or set `allow_extra = TRUE`

Created on 2023-04-27 with reprex v2.0.2

~I think the issue is that methods need to pass through an appropriate strict argument depending on whether or not extra tags have been allowed~


Bisaloo commented 1 year ago

Thanks a lot for the report and apologies for the delay! This issue got lost in a sea of notifications.