delete_progress: Delete a Saved Player Profile

View source: R/progress.R

delete_progressR Documentation

Delete a Saved Player Profile

Description

Removes a saved profile and closes the active game if it uses that profile.

Usage

delete_progress(player = .state$player)

Arguments

player

Single non-empty player name. Defaults to the active player.

Details

Progress is stored in the per-user directory returned by tools::R_user_dir(). Set options(escapeR.progress_dir = path) to select another directory. Delete profiles when no longer needed. Player filenames are case-insensitive and punctuation is replaced by underscores.

Value

Invisibly returns whether a saved file was removed.

Examples

local({
  path <- tempfile("escapeR-demo-")
  old <- options(escapeR.progress_dir = path)
  on.exit(options(old))
  on.exit(unlink(path, recursive = TRUE), add = TRUE)
  escape(player = "demo", reset = TRUE)
  submit(70)
  delete_progress("demo")
})

escapeR documentation built on Sept. 27, 2026, 5:06 p.m.