Skip to content

Commit

Permalink
get_xg3(): try deleting already existing temporary table *
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdh committed Jun 25, 2019
1 parent 8fa33b0 commit 6ecca1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ importFrom(dplyr,arrange)
importFrom(dplyr,collect)
importFrom(dplyr,contains)
importFrom(dplyr,copy_to)
importFrom(dplyr,db_drop_table)
importFrom(dplyr,distinct)
importFrom(dplyr,filter)
importFrom(dplyr,left_join)
Expand Down
3 changes: 3 additions & 0 deletions R/get.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ get_xg3 <- function(locs,
locs %>%
distinct(loc_code)

try(db_drop_table(con, "##locs"),
silent = TRUE)

locs <-
copy_to(con,
locs) %>%
Expand Down

0 comments on commit 6ecca1d

Please sign in to comment.