Skip to content

Commit 8ba08c8

Browse files
committed
[fix] One-row dataset exports no longer fail.
1 parent 85f96df commit 8ba08c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/export_helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ prep_export_data <- function(data_selection, current_data, data_selection_name,
439439

440440
# convert types to character to avoid representation issues in Excel
441441
labels <- get_labels(df)
442-
data <- data.frame(sapply(df, as.character))
442+
data <- data.frame(sapply(df, as.character, simplify = FALSE))
443443
data <- set_labels(data, labels)
444444

445445
# attach footer, if available

0 commit comments

Comments
 (0)