key_actions: This function makes the key accessible to all functions.

Description Usage Arguments Details Value Examples

View source: R/key_funcs.R

Description

key_actions will allow the user to register (set), get (retrieve) or delete the key.

Usage

1
2
key_actions(action = c("register_key", "get_key", "delete_key"),
  value = NULL)

Arguments

action

Which action to perform. Check the details.

value

The steam key to use. It is used only in the register_key action. If you do not have a key, you can get one at https://steamcommunity.com/dev.

Details

There are three actions that can be performed in this function:

Value

A dota_api object containing the elements described in the details.

Examples

1
2
3
4
5
6
7
## Not run: 
key_actions(action = 'register_key', value = Sys.getenv('RDota_KEY'))
key_actions(action = 'register_key', value = 'xxxxxxxxxxxxx')
key_actions(action = 'get_key')
key_actions(action = 'delete_key')

## End(Not run)

RDota2 documentation built on May 1, 2019, 7:09 p.m.