Closed eamcvey closed 4 years ago
I think you need 'bq_perform_upload', e.g. see here: https://github.com/madedotcom/retl/blob/8398ff7b79b6af81a1a0f3b06c46378b831f9332/R/bigquery.R#L756
If your data comes from query, you need to save it with 'bq_perform_query', see example: https://github.com/madedotcom/retl/blob/8398ff7b79b6af81a1a0f3b06c46378b831f9332/R/bigquery.R#L369
If you use the DBI interface, you can use dbWriteTable(con, "table_name", df, overwrite=TRUE)
I imagine this question is less an issue and more confusion on my part ... I'm trying to update data in a BigQuery table from R with a daily job, which should overwrite the table contents each day rather than append to it (this will be scheduled in RStudio Connect). I was expecting to find a bq_table_update() function in bigrquery but it seems there is not one. What function should I use instead?
FYI, I posted this question on RStudio Community here