Description Usage Arguments Format Value Additional methods Examples
Get notification is a file or any file in a directory changes. It uses the fswatch tool (see https://github.com/emcrisostomo/fswatch) and works on major platforms.
1 2 3 4 5 | fswatch(path, callback, check_interval = 500)
## id <- fswatch(path, callback, check_interval = 500)
## fswatch$cancel(id)
## fswatch$list()
|
path |
Path to watch. It can be a directory or a file. Directories are watched recursively. |
callback |
Callback function to call when |
check_interval |
How long to wait between checks for changes, in milliseconds. Defaults to half a second. |
An object of class fswatch_package
of length 1.
The ID of the watcher. This can be used to cancel it later.
fswatch$list()
lists all watchers.
fswatch$cancel(id
cancels a watcher.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.