You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the vignette under the Asynchronous Queries paragraph the bqr_grant_extract_access example is incorrect. It says:
## Create the data extract from BigQuery to Cloud Storage
job_extract <- bqr_extract_data("your_project",
"your_dataset",
"bigResultTable",
"your_cloud_storage_bucket_name")
## poll the extract job to check its status
## its done when job$status$state == "DONE"
bqr_get_job("your_project", job_extract$jobReference$jobId)
## to download via a URL and not logging in via Google Cloud Storage interface:
## Use an email that is Google account enabled
## Requires scopes:
## https://www.googleapis.com/auth/devstorage.full_control
## https://www.googleapis.com/auth/cloud-platform
## set via options("bigQueryR.scopes") and reauthenticate if needed
download_url <- bqr_grant_extract_access(job_extract, "your@email.com")
The issue is with the last line: the job_extract variable's ProjectID is RUNNING, which won't change to DONE even after the job is actually done.
In the vignette under the Asynchronous Queries paragraph the
bqr_grant_extract_access
example is incorrect. It says:The issue is with the last line: the
job_extract
variable's ProjectID isRUNNING
, which won't change toDONE
even after the job is actually done.To fix this, use the following code snippet instead:
download_url <- bqr_grant_extract_access(bqr_wait_for_job(job_extract), "your@email.com")
The text was updated successfully, but these errors were encountered: