【问题标题】:How to save Google Cloud Datalab output into BigQuery using R如何使用 R 将 Google Cloud Datalab 输出保存到 BigQuery
【发布时间】:2019-01-25 09:09:52
【问题描述】:

我在 Google Cloud Datalab 中使用 R,我想将我的输出(一个包含在代码本身中创建的字符串的表)保存到 BigQuery。我知道有一种方法可以通过使用bqr_create_table 来使用 Python,所以我正在寻找 R 中的等价物。

【问题讨论】:

    标签: sql r google-cloud-platform google-bigquery


    【解决方案1】:

    我在 Google Cloud Platform 上的 Gus Class 中找到了这个 blog post,它使用此代码写入 BigQuery:

    # Install BigRQuery if you haven't already...
    # install.packages("devtools")
    # devtools::install_github("rstats-db/bigrquery")
    # library(bigrquery)
    insert_upload_job("your-project-id", "test_dataset", "stash", stash)
    

    "test_dataset" 是 BigQuery 中的数据集,"stash" 是数据集中的表,stash 是您使用数据定义的任何数据框。

    有更多关于如何使用bigrquery进行授权的信息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      • 2021-06-07
      • 1970-01-01
      相关资源
      最近更新 更多