powered by
lock(path, exclusive = TRUE)
FileLock
unlock
## Not run: # require(flock) # # file.lock = lock("~/file.lock") # # Critical section code goes here # unlock(file.lock) # ## End(Not run)
Run the code above in your browser using DataLab