Browse Source

scipen for dbUpsert

master
Maxime Wack 6 years ago
parent
commit
0acd2d4e02
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      R/utils.R

+ 2
- 0
R/utils.R View File

@@ -97,6 +97,8 @@ clear_table <- function(db, table, host = "", admin = "", pass = "")
#' @param PK Character vector of the primary key(s)
dbUpsert <- function(df, con, table, PK)
{
options(scipen = 999)

columns <- setdiff(names(df), PK)

utils::write.csv(df, file = "/tmp/data.csv", row.names = F, na = "")


Loading…
Cancel
Save