bigQueryR | R Interface with Google BigQuery | GCP library
kandi X-RAY | bigQueryR Summary
kandi X-RAY | bigQueryR Summary
This is a package for interacting with BigQuery from within R. See the bigQueryR website for examples, details and tutorials.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bigQueryR
bigQueryR Key Features
bigQueryR Examples and Code Snippets
# latest stable version
install.packages("bigQueryR", repos = c(getOption("repos"), "http://cloudyr.github.io/drat"))
if(!require("ghit")){
install.packages("ghit")
}
ghit::install_github("cloudyr/bigQueryR")
Community Discussions
Trending Discussions on bigQueryR
QUESTION
I have been able to authenticate using the json file associated with a service account using googleAuth
and bigQueryR
.
ANSWER
Answered 2017-Mar-02 at 11:05You can use the function set_service_token()
in bigrquery
to authenticate with the same service JSON you use in bigQueryR
QUESTION
I've tried two methods to connect my Shiny app to a BigQuery table as its source data:
- Hadley's bigrquery, and
- Mark Edmondson's BigQueryR
They're both failing the same way, so it's clearly a DFU error.
In each case, when I execute the appropriate command to establish the authorized connection (gar_auth_service(json_file = /path/,scope = 'https://www.googleapis.com/auth/bigquery'
and bq_auth(path = /path/
, respectively), I get this:
This site can’t be reached localhost refused to connect. Try:
Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED
This error comes after what appears to be a normal Google login process in the browser. The error page is hosted at localhost:1410, if that's any help.
In the Console, I have:
- Created a VM instance (Ubuntu 19)
- Successfully installed R, RStudio, and Shiny
- Successfully logged in to RStudio in my GCP instance (from the browser, obviously, using the Externa IP I reserved in GCP)
I've also already created a BigQuery table in the same project, and successfully connected to it from an R script on my local machine.
I'm trying to get that same R script to run grom my Google Compute Engine instance.
Have I provided enough details to ask for help? If not, let me know what else I should provide. I'm walking through teaching myself GCP right now, and I'm quite the novice.
Thanks!
...ANSWER
Answered 2019-Aug-14 at 14:59To bypass this issue, try connecting to your Ubuntu 19 instance using Chrome Remote Desktop on your Compute Engine instance as documented here.
Chrome Remote Desktop allows you to remotely access applications with a graphical user interface from a local computer instead of using the External IP. For this approach, you don't need to open firewall ports, and you use your Google Account for authentication and authorization. I've tried and I was able to connect both Shiny Server and to the RStudio.
QUESTION
I am using the package bigQueryR, and in particular the function bqr_list_tables to get a list of all tables in a dataset in Google Big Query.
My issue is I only get 50 tables when I would ideally like to get them all so I can regex out the ones I want programmatically.
bqr_list_tables only takes two arguments, the datasetId and projectId. Is there any way to accomplish this restricting myself to this package?
I'm using version ‘0.2.0’ of bigQueryR
Edit:
...ANSWER
Answered 2017-Mar-02 at 02:27Instead of installing the latest github version, I just directly used the following code from the repo https://github.com/cloudyr/bigQueryR/blob/master/R/tables.R, no issues and works as prescribed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bigQueryR
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page