Skip to contents

Reverts the most recent action. Every content change can be undone: codings (add, delete, memo), memos, codes (add, rename, move and delete – including all sub-codes, codings and summaries that were removed with it), document variables, summaries and segment changes. System actions (import, export, backup, auto_snapshot, project open/close) are not undoable. Repeated calls walk backwards through the history; qda_redo() re-applies undone actions. In the app: button "Undo" or Ctrl+Z, redo with Ctrl+Y.

Usage

qda_undo()

Value

Invisibly, a one-row tibble: undone (action that was reverted) and detail (human-readable description).

Details

Actions recorded by older jellyqda versions (without snapshot) are reverted with the previous per-action logic where possible.

Examples

qda_open(file.path(tempfile(), "example.jellyqda"))
qda_import(system.file("extdata", "interview_01.txt", package = "jellyqda"))
#> # A tibble: 1 × 5
#>      id name             format chars status
#>   <int> <chr>            <chr>  <int> <chr> 
#> 1     1 interview_01.txt txt      856 ok    
qda_code_add("Theme A")
qda_code(1, "Theme A", segment = 1)
qda_undo()  # removes the coding again
qda_undo()  # removes the code again
qda_redo()  # the code is back
qda_codes()$label
#> [1] "Theme A"
qda_close()