has_key: Check for key

Description Usage Arguments Details Value Examples

View source: R/key.R

Description

Has the user set up a given password?

Usage

1
has_key(key, ring = getOption("keyring_keyring", "friend"))

Arguments

key

Character. The system for which the user wants to check the existence of a password.

ring

Optional. Name of keyring.

Details

Function includes checks for has_keyring and keyring_locked.

Value

Logical.

Examples

1
2
3
4
## Not run: 
has_key("snowflake")

## End(Not run)

BenjaminWolfe/speakfriend documentation built on Nov. 18, 2019, 5:09 a.m.