reaRandom: reaRandom

Description Usage Arguments Details Value Examples

Description

Function used to create new REARandom class objects

Usage

1
reaRandom(api = NULL)

Arguments

api

Takes a single character argument with either a file containing the api key for Random.org, the key itself, or a NULL value.

Details

Function to construct new REARandom class objects

Value

Returns an object of class REARandom

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

# Create a new REARandom object in x with made up API key passed as an
# argument to the function
x <- reaRandom(api = "ABCD123456789abcd")

# Same as above but assuming the API key is stored in a file on the local
# system
x <- reaRandom(api = "~/.randomOrgApiKey")

# Same as above assuming the API key is stored as an option named
# "reaRandomKey"
x <- reaRandom()


## End(Not run)

wbuchanan/reaRandom documentation built on May 4, 2019, 2:01 a.m.