Skip to content

Commit

Permalink
Ensure 0-row dfs have unique column names
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Dec 20, 2023
1 parent 2b691e2 commit eecd7f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/finbif_occurrence_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,11 @@ dt_read <- function(fb_occurrence_obj) {

}

cols <- rownames(sysdata("cite_file_vars"))
cols <- sysdata("cite_file_vars")

cols <- rownames(cols)

cols <- unique(cols)

if (file.exists(args[["input"]])) {

Expand Down Expand Up @@ -1550,6 +1554,8 @@ open_tsv_connection <- function(connection_obj) {

vars <- rownames(vars)

vars <- unique(vars)

vars <- paste0(vars, collapse = "\t")

textConnection(vars)
Expand Down

0 comments on commit eecd7f5

Please sign in to comment.