get_table {bigrquery}R Documentation

Retrieve table metadata

Description

get_table returns a table's metadata as a nested list. In addition to a regular error, the condition bigrquery_notFound (which can be handled via base::tryCatch()) is raised if the table could not be found.

exists_table merely checks if a table exists, and returns either TRUE or FALSE.

Usage

get_table(project, dataset, table)

exists_table(project, dataset, table)

Arguments

project

The project name, a string

dataset

The name of the dataset to create, a string

table

name of the table

Value

A table resource list, as described by https://developers.google.com/bigquery/docs/reference/v2/tables

See Also

API documentation: https://developers.google.com/bigquery/docs/reference/v2/tables/get

Other tables: delete_table, list_tables

Examples

## Not run: 
str(get_table("publicdata", "samples", "natality"))
str(get_table("publicdata", "samples", "gsod"))
str(get_table("githubarchive", "github", "timeline"))

## End(Not run)


[Package bigrquery version 0.4.1 Index]