Closed
Description
Current rollbacks (based on number of activities) are not ideal for prototyping, because they require an adjustment every time the user adds or removes an activity. This is even trickier when the trajectory is split into several pieces, or there are branches, etc.
It would be convenient to have some mechanism to label a point in a trajectory and then reference it by name. E.g.,
trajectory() %>%
timeout(1) %>%
rollback_point("foo") %>%
timeout(2) %>%
timeout(3) %>%
rollback("foo")
would be equivalent to
trajectory() %>%
timeout(1) %>%
timeout(2) %>%
timeout(3) %>%
rollback(2)