Skip to contents

Signals that saving a session file failed.

Usage

abort_session_save(
  message,
  path = NULL,
  parent = NULL,
  ...,
  .envir = parent.frame()
)

Arguments

message

The error message (supports cli formatting)

path

Path where the session was being saved

parent

The parent error that caused the failure (optional)

...

Additional context fields

.envir

Environment for cli interpolation

Examples

if (FALSE) { # \dontrun{
abort_session_save(
  "Cannot write to {.path {path}}",
  path = "/readonly/path/session.rds"
)
} # }