ga_run_log_config: Extract Log Configuration

View source: R/extract_log.R

ga_run_log_configR Documentation

Extract Log Configuration

Description

Extract Log Configuration

Usage

ga_run_log_config(zipfile, make_data_frame = FALSE)

Arguments

zipfile

Log zip file from ga_run_download_log

make_data_frame

Make it into a data.frame

Value

A list of character vectors

Examples

## Not run: 
 have_token = length(gh::gh_token()) > 0
  if (have_token) {
    run = ga_run("muschellij2", "pycwa",  "392215958")
    if (difftime(Sys.time(), as.POSIXct(run$created_at), "days")<= 90) {
     zipfile = ga_run_download_log("muschellij2", "pycwa",  "392215958")
    }
  }

  if (have_token) {
    run = ga_run("r-lib", "actions",  "551409765")
    if (difftime(Sys.time(), as.POSIXct(run$created_at), "days")<= 90) {
      zipfile = ga_run_download_log("r-lib", "actions",  "551409765")
      config = ga_run_log_config(zipfile)
    }
  }

## End(Not run)

muschellij2/aghast documentation built on Nov. 7, 2024, 9:36 p.m.