-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ntfy: Mention the 'NTFY_TOPIC' environment variable in the example
- Loading branch information
1 parent
fb18647
commit 12cfa66
Showing
4 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
pkg <- "ntfy" | ||
if (requireNamespace(pkg, quietly = TRUE)) { | ||
## We need to specify a ntfy.sh topic that progress messages | ||
## should be sent to. See help("ntfy_topic", package = "ntfy") | ||
## for details | ||
Sys.setenv("NTFY_TOPIC", "R-my-secret-topic") | ||
|
||
handlers("ntfy") | ||
with_progress({ y <- slow_sum(1:10) }) | ||
print(y) | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.