Closed
Description
Brief description of the problem
I have an RStudio Server instance running on a GCP VM. I'm getting the following error
library(tidyverse)
library(magrittr)
#>
#> Attaching package: 'magrittr'
#> The following object is masked from 'package:purrr':
#>
#> set_names
#> The following object is masked from 'package:tidyr':
#>
#> extract
library(bigrquery)
bq_deauth()
bq_auth(email="[email protected]")
bq_conn = dbConnect(
bigquery(),
project = "?????????????",
dataset = "balter"
)
tbl(bq_conn, "bigquery-public-data.austin_311.311_service_requests")
#> # Source: table<bigquery-public-data.austin_311.311_service_requests> [?? x
#> # 24]
#> # Database: BigQueryConnection
#> unique_key complaint_type complaint_descrip… owning_departme… source status
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 19-00243479 DRVECTRL Creek & Pond Vege… Watershed Prote… Phone Closed
#> 2 20-00440346 SCHOOLZ2 School Zone Flash… Transportation Spot31… Closed
#> 3 19-00492617 ACCOYTE Coyote Complaints Animal Services… Phone Closed
#> 4 20-00349773 ACCOYTE Coyote Complaints Animal Services… Phone Closed
#> 5 19-00140825 SBSTRES Street Resurfacing Public Works Phone Closed
#> 6 19-00399194 ACCOYTE Coyote Complaints Animal Services… Phone Closed
#> 7 19-00424223 ACCOYTE Coyote Complaints Animal Services… Phone Closed
#> 8 19-00215436 DRSDPIPE Storm Drain Pipe … Watershed Prote… Phone Closed
#> 9 19-00461812 STREETL1 Street Lights New Austin Energy D… Phone Closed
#> 10 20-00333823 ACCOYTE Coyote Complaints Animal Services… Phone Closed
#> # … with more rows, and 18 more variables: status_change_date <dttm>,
#> # created_date <dttm>, last_update_date <dttm>, close_date <dttm>,
#> # incident_address <chr>, street_number <chr>, street_name <chr>, city <chr>,
#> # incident_zip <int>, county <chr>, state_plane_x_coordinate <chr>,
#> # state_plane_y_coordinate <dbl>, latitude <dbl>, longitude <dbl>,
#> # location <chr>, council_district_code <int>, map_page <chr>, map_tile <chr>
tbl(bq_conn, "??????????.s.balter.gnomad_v2_select_allele_frequencies")
#> Error: Access Denied: Table ??????????.gnomad_v2_select_allele_frequencies: Permission bigquery.tables.get denied on table ??????????.:balter.gnomad_v2_select_allele_frequencies (or it may not exist). [accessDenied]
Created on 2021-05-11 by the reprex package (v2.0.0)
However, this code runs fine on my local machine and in AI notebooks.
Also, in the RStudio terminal I can run gcloud auth login
, set up auth.
So the VM can connect to data in my project, but for some reason bigrquery
can't auth.
How can I reset the auth information in bigrquery
?
Metadata
Metadata
Assignees
Labels
No labels