https://www.somethingsblog.com/2024/10/22/capture-user-input-in-r-unlock-interactive-sessions/