set_pushover_app: Set, get, and unset the Pushover application token

Description Usage Arguments Details Value Examples

View source: R/set_pushover_app.R

Description

set_pushover_app() sets the Pushover application token to be used in subsequent commands, get_pushover_app() gets the application token that is currently set, and unset_pushover_app() unsets the token.

Usage

1
2
3
4
5
set_pushover_app(token = NULL, ask = is_interactive())

get_pushover_app(ask = is_interactive())

unset_pushover_app()

Arguments

token

The application token to be used. If none is provided, a prompt will request the token (interactive sessions only).

ask

Whether or not to ask for the token if none is provided. Note that this option only works in interactive sessions.

Details

set_pushover_app() only sets the Pushover app token for the current session. If a different value is specified in .Renviron, that value will be used in future sessions. Similarly, unset_pushover_app() will only unset the app token for the current session.

To receive an application token, register a new application after logging in to your account at https://pushover.net/apps.

Value

get_pushover_app() returns a string containing the current application token. If the token is not set but ask is TRUE, the user will be prompted for a token.

Examples

1
2
3
4
## Not run: 
set_pushover_app(token = "azGDORePK8gMaC0QOYAMyEEuzJnyUi")

## End(Not run)

pushoverr documentation built on Nov. 16, 2021, 9:17 a.m.