Skip to content

Commit 42876a9

Browse files
authored
Add deepwiki badge (#39)
1 parent bec77f7 commit 42876a9

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

README.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ knitr::opts_chunk$set(
2424

2525
Watch the File System for Changes
2626

27+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/r-lib/watcher)
28+
2729
R binding for [libfswatch](https://emcrisostomo.github.io/fswatch/), a file system monitoring library. This uses an optimal event-driven API for each platform:
2830

2931
- `ReadDirectoryChangesW` on Windows

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ coverage](https://codecov.io/gh/r-lib/watcher/graph/badge.svg)](https://app.code
1414

1515
Watch the File System for Changes
1616

17+
[![Ask
18+
DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/r-lib/watcher)
19+
1720
R binding for [libfswatch](https://emcrisostomo.github.io/fswatch/), a
1821
file system monitoring library. This uses an optimal event-driven API
1922
for each platform:
@@ -79,7 +82,7 @@ w
7982
#> start: function ()
8083
#> stop: function ()
8184
#> Private:
82-
#> path: /tmp/RtmpslHgGB/watcher-example
85+
#> path: /var/folders/38/lgkw9s3d5tn626g4z2r11bzm0000gp/T//RtmpFm ...
8386
#> running: FALSE
8487
#> watch: externalptr
8588
w$start()
@@ -89,19 +92,20 @@ file.create(file.path(dir, "newfile"))
8992
file.create(file.path(dir, "anotherfile"))
9093
#> [1] TRUE
9194
later::run_now(1)
92-
#> [1] "/tmp/RtmpslHgGB/watcher-example/newfile"
93-
#> [1] "/tmp/RtmpslHgGB/watcher-example/anotherfile"
95+
#> [1] "/private/var/folders/38/lgkw9s3d5tn626g4z2r11bzm0000gp/T/RtmpFmlhtZ/watcher-example"
96+
#> [2] "/private/var/folders/38/lgkw9s3d5tn626g4z2r11bzm0000gp/T/RtmpFmlhtZ/watcher-example/newfile"
97+
#> [3] "/private/var/folders/38/lgkw9s3d5tn626g4z2r11bzm0000gp/T/RtmpFmlhtZ/watcher-example/anotherfile"
9498

9599
newfile <- file(file.path(dir, "newfile"), open = "r+")
96100
cat("hello", file = newfile)
97101
close(newfile)
98102
later::run_now(1)
99-
#> [1] "/tmp/RtmpslHgGB/watcher-example/newfile"
103+
#> [1] "/private/var/folders/38/lgkw9s3d5tn626g4z2r11bzm0000gp/T/RtmpFmlhtZ/watcher-example/newfile"
100104

101105
file.remove(file.path(dir, "newfile"))
102106
#> [1] TRUE
103107
later::run_now(1)
104-
#> [1] "/tmp/RtmpslHgGB/watcher-example/newfile"
108+
#> [1] "/private/var/folders/38/lgkw9s3d5tn626g4z2r11bzm0000gp/T/RtmpFmlhtZ/watcher-example/newfile"
105109

106110
w$stop()
107111
unlink(dir, recursive = TRUE, force = TRUE)

0 commit comments

Comments
 (0)