Skip to content

Commit

Permalink
Merge pull request #70 from ekocsis3/docs
Browse files Browse the repository at this point in the history
Update bqr_get_job example
  • Loading branch information
MarkEdmondson1234 authored Apr 26, 2021
2 parents 3d8bc72 + cab4827 commit 86993d9
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Suggests:
testthat,
data.table,
purrr
RoxygenNote: 7.0.2
RoxygenNote: 7.1.1
VignetteBuilder: knitr
8 changes: 4 additions & 4 deletions R/downloadData.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#'
#' ## poll the job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job)
#' bqr_get_job(job$jobReference$jobId, "your_project")
#'
#' ##once done, the query results are in "bigResultTable"
#' ## extract that table to GoogleCloudStorage:
Expand All @@ -46,7 +46,7 @@
#'
#' ## poll the extract job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job_extract$jobReference$jobId)
#' bqr_get_job(job_extract$jobReference$jobId, "your_project")
#'
#' You should also see the extract in the Google Cloud Storage bucket
#' googleCloudStorageR::gcs_list_objects("your_cloud_storage_bucket_name")
Expand Down Expand Up @@ -234,7 +234,7 @@ bqr_download_extract <- function(extractJob,
#'
#' ## poll the job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job$jobReference$jobId)
#' bqr_get_job(job$jobReference$jobId, "your_project")
#'
#' ##once done, the query results are in "bigResultTable"
#' ## extract that table to GoogleCloudStorage:
Expand All @@ -248,7 +248,7 @@ bqr_download_extract <- function(extractJob,
#'
#' ## poll the extract job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job_extract$jobReference$jobId)
#' bqr_get_job(job_extract$jobReference$jobId, "your_project")
#'
#' ## to download via a URL and not logging in via Google Cloud Storage interface:
#' ## Use an email that is Google account enabled
Expand Down
6 changes: 3 additions & 3 deletions R/jobs.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bqr_wait_for_job <- function(job, wait=5){
#'
#' ## poll the job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job$jobReference$jobId)
#' bqr_get_job(job$jobReference$jobId, "your_project")
#'
#' ##once done, the query results are in "bigResultTable"
#' ## extract that table to GoogleCloudStorage:
Expand All @@ -114,7 +114,7 @@ bqr_wait_for_job <- function(job, wait=5){
#'
#' ## poll the extract job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job_extract$jobReference$jobId)
#' bqr_get_job(job_extract$jobReference$jobId, "your_project")
#'
#' ## to download via a URL and not logging in via Google Cloud Storage interface:
#' ## Use an email that is Google account enabled
Expand Down Expand Up @@ -207,4 +207,4 @@ bqr_list_jobs <- function(projectId = bqr_get_global_project(),

lapply(out$jobs, as.job)

}
}
6 changes: 3 additions & 3 deletions R/query.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ bqr_query <- function(projectId = bqr_get_global_project(),
#'
#' ## poll the job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job$jobReference$jobId)
#' bqr_get_job(job$jobReference$jobId, "your_project")
#'
#' ##once done, the query results are in "bigResultTable"
#' ## extract that table to GoogleCloudStorage:
Expand All @@ -181,7 +181,7 @@ bqr_query <- function(projectId = bqr_get_global_project(),
#'
#' ## poll the extract job to check its status
#' ## its done when job$status$state == "DONE"
#' bqr_get_job("your_project", job_extract$jobReference$jobId)
#' bqr_get_job(job_extract$jobReference$jobId, "your_project")
#'
#' ## to download via a URL and not logging in via Google Cloud Storage interface:
#' ## Use an email that is Google account enabled
Expand Down Expand Up @@ -258,4 +258,4 @@ bqr_query_asynch <- function(projectId = bqr_get_global_project(),

as.job(out)

}
}
4 changes: 2 additions & 2 deletions man/bqr_extract_data.Rd

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

4 changes: 2 additions & 2 deletions man/bqr_get_job.Rd

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

4 changes: 2 additions & 2 deletions man/bqr_grant_extract_access.Rd

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

4 changes: 3 additions & 1 deletion man/bqr_query.Rd

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

4 changes: 2 additions & 2 deletions man/bqr_query_asynch.Rd

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

4 changes: 2 additions & 2 deletions vignettes/bigQueryR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ job <- bqr_query_asynch("your_project",

## poll the job to check its status
## its done when job$status$state == "DONE"
bqr_get_job("your_project", job$jobReference$jobId)
bqr_get_job(job$jobReference$jobId, "your_project")

##once done, the query results are in "bigResultTable"
```
Expand All @@ -117,7 +117,7 @@ job_extract <- bqr_extract_data("your_project",

## poll the extract job to check its status
## its done when job$status$state == "DONE"
bqr_get_job("your_project", job_extract$jobReference$jobId)
bqr_get_job(job_extract$jobReference$jobId, "your_project")

## to download via a URL and not logging in via Google Cloud Storage interface:
## Use an email that is Google account enabled
Expand Down

0 comments on commit 86993d9

Please sign in to comment.