Description Usage Arguments Details Value Examples
View source: R/client_with_fields.R
This function is intended to set default parameters such as
message
or destination
inside a client as additional fields.
After setting default values the clients will be able to send messages
without passing additional arguments to the send_message
function.
1 | set_fields(client, ...)
|
client |
the client which will have default values set. |
... |
named arguments to set inside the client (non-named arguments will be ignored). |
Standard fields utilized in the package include:
message
destination
(apart from Slack service client)
verbose
any other set defaults won't have any effect.
Note: arguments to send_message
function are always
prioritized over the client fields.
Updated client.
1 2 3 4 5 6 7 | client <- client_telegram("my_token")
client <- set_fields(client, message = "Hello world!", destination = 12345)
## Not run:
send_message(client)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.