Handler for event expansion
expandEvent(
displayed.moves,
all.moves,
detections,
tag,
GUI,
save.tables.locally
)
An updated movements table
The valid movements table for a specific tag.
The detections data.frame for a specific tag.
The tag being analysed.
One of "needed", "always" or "never". If "needed", a new window is opened to inspect the movements only if the movements table is too big to be displayed in R's console. If "always", a graphical interface is always created when the possibility to invalidate events emerges. If "never", a graphical interface is never invoked. In this case, if the table to be displayed does not fit in R's console, a temporary file will be saved and the user will be prompted to open and examine that file. Defaults to "needed".
Logical: If a table must be temporarily stored into a file for user inspection, should it be saved in the current working directory, or in R's temporary folder?