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.

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

if (interactive()) { create_env_pw("testing-tokencodr") }