fetch_logs: Fetch job logs from the Civis Platform

Description Usage Arguments Value Examples

View source: R/logs.R

Description

Fetch job logs from the Civis Platform

Usage

1
fetch_logs(object, limit = 100, ...)

Arguments

object

A civis_api, civis_error, or civis_ml object.

limit

The number of log lines to fetch, the default is 100.

...

Extra parameters passed to methods, currently unused.

Value

A list of log messages with class civis_logs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
m <- civis_ml_fetch_existing(123)
fetch_logs(m)

import <- write_civis(iris, "scratch.mytest")
fetch_logs(import)

query_run <- query_civis(123)
fetch_logs(query_run)

e <- tryCatch(read_civis("asdf;"), error = function(e) e)
fetch_logs(e)

## End(Not run)

civisanalytics/civis-r documentation built on June 27, 2020, 7:25 a.m.