Skip to content

Commit

Permalink
fix metadata processing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jan 9, 2025
1 parent 416c0f4 commit 024ef7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/class_database.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ database_class <- R6::R6Class(
if (anyNA(element)) {
element <- replace_na(element, "")
}
if (is.list(element)) {
element <- paste(unlist(element), collapse = database_sep_inner)
element <- as.character(unlist(element))
if (length(element) != 1L) {
element <- paste(element, collapse = database_sep_inner)
}
as.character(element)
element
},
reset_storage = function() {
dir_create(dirname(self$path))
Expand Down

0 comments on commit 024ef7e

Please sign in to comment.