Skip to contents

Writes a trace back as a json for error logging Useful for remote error logging on deployed shiny apps, such as via Sentry

Usage

trace_back_json(
  e = NULL,
  file = glue::glue("{lubridate::format_ISO8601(Sys.time())}.json"),
  tb = rlang::trace_back(bottom = 1)
)

Arguments

e

error Error condition object, optional

file

chr path to file to be written.

tb

rlang_trace Trace back

Value

None called for side effect of writing to file

See also

Other condition signaling: gbort(), ginfo(), gmsg(), gwarn()

Examples

trace_back_json()