Skip to contents

clear_prompt_history() empties the session's prompt history, which get_last_prompt(), inspect_history() and session_cost() read. Module traces are kept; see clear_traces() for those.

Usage

clear_prompt_history()

Value

The number of entries removed, invisibly. A message reports it when the history was not empty.

Examples

removed <- clear_prompt_history()
removed
#> [1] 0