create_env_pw: Create environment password

Description Usage Arguments Value Examples

View source: R/func_encrypt.R

Description

Following the conventions of gargle's secret_*() family of functions, this function will generate a random password that can be added to your R enviornment. This will allow you to pass the system variable to external services such as GitHub Actions, which can be useful for encrypting and decrypting authentication tokens.

Usage

1
create_env_pw(service)

Arguments

service

Identifier of the service whose token will be encrypted.

Value

NA; used for side effects to create environmental variable.

Examples

1
2
3
if (interactive()) {
create_env_pw("testing-tokencodr")
}

jdtrat/tokencodr documentation built on Dec. 20, 2021, 10:06 p.m.