Open file when it's not open

delayedRead(file, fun = NULL, ...)

Arguments

file

a file to store with a delay.

fun

the function to use.

...

arguments to the write functions.

Details

This function takes the file and only opens it, if it is not currently already open. In the case it's already open, it prompts the user to confirm when the file is closed (and processed by the other process) and then opens it again.