| delete_progress | R Documentation |
Removes a saved profile and closes the active game if it uses that profile.
delete_progress(player = .state$player)
player |
Single non-empty player name. Defaults to the active player. |
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.
Invisibly returns whether a saved file was removed.
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")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.