powered by
test position of mouse click to see if user wants to exit
exitClick(bounds, y)
Boolean TRUE if y is within bounds
list of numeric xmin xmax ymin ymax defining screen target for exit
numeric vector of x and y cursor position
use in conjunction with defineBounds()
if(interactive()){ load("data/x_bounds.RData") load("data/x_y.RData") exitClick(x_bounds,x_y) }
Run the code above in your browser using DataLab