Learn R Programming

bigQueryR (version 0.5.0)

bqr_copy_dataset: Copy datasets

Description

Uses bqr_copy_table to copy all the tables in a dataset.

Usage

bqr_copy_dataset(source_datasetid, destination_datasetid,
  source_projectid = bqr_get_global_project(),
  destination_projectid = bqr_get_global_project(),
  createDisposition = c("CREATE_IF_NEEDED", "CREATE_NEVER"),
  writeDisposition = c("WRITE_TRUNCATE", "WRITE_APPEND", "WRITE_EMPTY"),
  destination_prefix = NULL)

Arguments

source_datasetid

source datasetId

destination_datasetid

destination datasetId

source_projectid

source table's projectId

destination_projectid

destination table's projectId

createDisposition

Create table's behaviour

writeDisposition

Write to an existing table's behaviour

destination_prefix

A prefix appended to the destination tableIds

Value

A named list of jobs of the source datasets, with details of job started.

Details

You can not copy across dataset regions (e.g. EU to US), or copy BigQuery Views.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
  bqr_copy_dataset("source_dataset", "destination_dataset")

# }

Run the code above in your browser using DataLab