get_kc_account: Get a account name from macOS Keychain using the 'security'...

Description Usage Arguments Value Examples

Description

Get a account name from macOS Keychain using the 'security' cli

Usage

1
get_kc_account(label, type = "generic")

Arguments

label

Keychain password label

type

Leychain password type. Either "generic" or "internet".

Value

Returns the account value attached to the label.

macOS may require the user to grant access to "security" the first time the function is run for each stored credential. It is important to select "Always allow", which will prevent similar dialogs in the future.

Examples

1
2
3
4
5
6
## Not run: 
# First store a set of credentials in Keychain
# now return the account name to the R environment
x <- get_kc_account("label")

## End(Not run)

jgilfillan/keyringr documentation built on May 19, 2019, 9:26 a.m.