ga_job | R Documentation |
GitHub jobs
ga_job(owner, repo = NULL, job_id, ...)
ga_job_logs(owner, repo = NULL, job_id, ...)
owner |
owner of repo/username |
repo |
repository name |
job_id |
identifier of job |
... |
additional arguments to pass to |
Answer from the API as a ga_response
object, which is also a list.
Failed requests will generate an R error.
Requests that generate a raw response will return a raw vector.
## Not run:
have_token = length(gh::gh_token()) > 0
if (have_token) {
job_id = "1475662285"
job_out = ga_job("muschellij2", "pycwa", job_id)
job_out2 = ga_job("muschellij2/pycwa", job_id = job_id)
if (difftime(Sys.time(), as.POSIXct(job_out$completed_at), "days")<= 90) {
job_log = ga_job_logs("muschellij2", "pycwa", job_id)
job_log = ga_job_logs("muschellij2/pycwa", job_id = job_id)
}
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.