cdr_get_key: Retrieve keys from a path to a key file or read all keys...

Description Usage Arguments Details Value Examples

View source: R/get_keys.R

Description

The key is need to call the Vectronics API and given the length of the key copy and paste errors seems likely. The functions here help users access the keys in a programmatic fashion.

Usage

1
2
3
cdr_get_key(key_path)

cdr_get_keys(key_dir)

Arguments

key_path

A length 1 character string describing the full path to a single key file.

key_dir

A length 1 character string describing the full path to a directory containing, potentially many, key files

Details

cdr_get_keys is a wrapper for cdr_get_key where the former is retained to allow users to access a single file if desired.

Value

A character vector of keys

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
cdr_get_key(
  system.file(
    "extdata",
    "Collar123456_Registration.keyx",
    package = "CollarDownloadeR"
  )
)

cdr_get_keys(
  system.file(
    "extdata",
    package = "CollarDownloadeR"
  )
)

Huh/CollarDownloadeR documentation built on May 27, 2019, 11:47 p.m.