get_keys: Extract alphanumeric key from key files

View source: R/fetch_vectronics.R

get_keysR Documentation

Extract alphanumeric key from key files

Description

The key is needed 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. We don't anticipate much need for users to use this function as it was originally intended to be internal to the package, but if listing keys is needed for reporting purposes or otherwise the function is made available.

Usage

get_keys(key_paths)

Arguments

key_paths

The full path to one or more key files

Value

A character vector of keys

See Also

Other get: get_id_from_key(), get_paths()

Examples


my_key <- system.file(
  "extdata",
  "Collar1000001_Registration.keyx",
  package = "collar"
)

# Extract one key
get_keys(my_key)

# Extract keys from "several" files
get_keys(c(my_key, my_key, my_key))

Huh/collar documentation built on Aug. 5, 2022, 11:02 p.m.