I am trying to run a R script in cron server
which connects to my Big query
tables and returns some value.
But it fails due to authentication problems. I get this error
Error in httpuv::startServer(use$host, use$port, list(call = listen)) :
Failed to create server
Calls: query_exec ... init_oauth2.0 -> oauth_authorize -> oauth_listener -> <Anonymous>
Execution halted
Any work around for this kind of authentication related issues with R
in BigQuery
? I have heard of httr
, don't know if that might solve the problem, if so any idea how do I implement it? my R script is very simple as follows:
library(bigrquery)
project <- "xxx"
sql <- "SELECT col1 FROM [xxx:yy.zzz] LIMIT 5"
query_exec(sql, project = project)