It's worth noting that while pressing R does reset the whole puzzle, you can just undo. You don't have to solve everything again.
If you are willing to update the game, you can disable PuzzleScript's default restart by putting `norestart` in the prelude:
https://www.puzzlescript.net/Documentation/prelude.html