apply_action: Apply or reverse an action (Updated version)
Description
Applies or reverses an action in the undo/redo system. Handles different types of
actions including adding/removing annotations and merging/unmerging codes.
Usage
apply_action(rv, action, reverse = FALSE)
Value
Invisible rv (ReactiveValues object)
Arguments
- rv
ReactiveValues object containing application state
- action
List containing action information
- reverse
Logical indicating whether to reverse the action