Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Depends: R (>= 3.3.2),
assertthat,
bigrquery,
DBI
RoxygenNote: 6.0.1.9000
RoxygenNote: 7.2.3
10 changes: 5 additions & 5 deletions R/run_pipeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ run_pipeline <- function(pipeline, parameters){
#' @param pipeline User-provided function with one argument, one row of query results
#' @param query A query to execute in Google BigQuery
#' @param project The Google BigQuery project to bill
#' @param ... Additional arguments passed to query_exec()
#' @param ... Additional arguments passed to `bq_perform_query()`
#'
#' @import bigrquery
#'
Expand All @@ -65,7 +65,7 @@ run_pipeline <- function(pipeline, parameters){
#' options(httr_oob_default=TRUE)
#'
#' #Run the below query to authenticate and write credentials to .httr-oauth file
#' query_exec("SELECT 'foo' as bar",project=project);
#' bq_perform_query("SELECT 'foo' as bar",project);
#'
#' pipeline <- function(params){
#'
Expand All @@ -79,9 +79,9 @@ run_pipeline <- function(pipeline, parameters){
#' GROUP BY repo_name
#' ;"
#'
#' res <- query_exec(
#' res <- bq_perform_query(
#' whisker.render(query,params),
#' project=project,
#' project,
#' use_legacy_sql = FALSE
#' );
#'
Expand Down Expand Up @@ -113,7 +113,7 @@ run_pipeline <- function(pipeline, parameters){
run_pipeline_gbq <- function(pipeline, query, project, ... ){

#run the query to generate the intitialization table
parameters <- query_exec(query, project=project, ...)
parameters <- bq_perform_query(query, project, ...)

run_pipeline(pipeline, parameters)

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ options("httr_oauth_cache" = "~/.httr-oauth")
options(httr_oob_default=TRUE)

#Run the below query to authenticate and write credentials to .httr-oauth file
query_exec("SELECT 'foo' as bar",project=project);
bq_perform_query("SELECT 'foo' as bar",project);

```

Expand All @@ -185,8 +185,8 @@ pipeline <- function(params){
LIMIT {{limit_size}}
;"

res <- query_exec(whisker.render(query,params),
project=project,
res <- bq_perform_query(whisker.render(query,params),
project,
use_legacy_sql = FALSE
);

Expand Down Expand Up @@ -222,9 +222,9 @@ pipeline <- function(params){
GROUP BY repo_name
;"

res <- query_exec(
res <- bq_perform_query(
whisker.render(query,params),
project=project,
project,
use_legacy_sql = FALSE
);

Expand Down
12 changes: 6 additions & 6 deletions man/run_pipeline_gbq.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.