Skip to content

Commit

Permalink
(Hopefully temporary) workaround for tidyverse/vroom#519:
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin_mschuemi authored and Admin_mschuemi committed Nov 14, 2023
1 parent 57ce129 commit 2d5f6a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/Export.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ exportToCsv <- function(outputFolder,

writeToCsv <- function(data, fileName, append = FALSE) {
colnames(data) <- SqlRender::camelCaseToSnakeCase(colnames(data))
# Workaround for issue https://github.com/tidyverse/vroom/issues/519:
readr::local_edition(1)
readr::write_csv(x = data, file = fileName, append = append)
}

Expand Down
2 changes: 2 additions & 0 deletions R/Viewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ uploadExportedResults <- function(connectionDetails,
cdm_source_abbreviation = as.character(.data$database_id)
)
databaseIdentifierFile <- tempfile(fileext = ".csv")
# Workaround for issue https://github.com/tidyverse/vroom/issues/519:
readr::local_edition(1)
readr::write_csv(databaseIdentifier, databaseIdentifierFile)
DatabaseConnector::insertTable(
connection = connection,
Expand Down

0 comments on commit 2d5f6a5

Please sign in to comment.