in R there are several ways to wait for an input from the user, such as clicking somewhere on a graph (e.g. locator() function).
I'm looking for an option to record the user input WITHOUT waiting for it. I'm running a for loop with a locator() function in it, but this function prevents the for loop to progress unless the user click on something.
Any idea on how to overcome this?