Thanks for the nice package: I got strange errors when using load_entries on a file that I had written with export_glossary and tracked it down to a confusion of the names used in the YAML file. export_glossary with the following names changes works for me:
`export_glossary <- function(file, ...){
x <- get_entries()
idx <- sapply(x,'[[',1)%in%'definition'
names(x) <- NULL
out <- list(
definitions = lapply(x[idx],function(xx){
xx[c('entry', 'name', 'description')]
}),
acronyms = lapply(x[!idx],function(xx){
ret <- xx[c('label', 'name', 'description')]
names(ret) <- c('entry','label','long')
ret
})
)
yaml::write_yaml(out,file, ...)
}
`
Best regards