clear_traces() removes the traces recorded on a module and keeps
everything else, such as its demos and settings. The module is changed in
place. The session's prompt history is separate; see
clear_prompt_history().
See also
Other inspection:
accessors,
clear_prompt_history(),
export_traces(),
get_last_prompt(),
inspect_history(),
session_cost(),
summarize_traces()
Examples
shout <- module_fn("text -> reply", function(text) toupper(text))
run(shout, text = "hello")
#> $reply
#> [1] "HELLO"
#>
clear_traces(shout)
#> Cleared 1 trace
nrow(export_traces(shout))
#> No traces recorded in this module
#> [1] 0