set_key_Renviron: Set authentication key in .Renviron

Description Usage Arguments Examples

Description

Useful for accessing API keys outside of shared scripts. Key name chosen can be used as a reference on machine going forward.

Usage

1

Arguments

name

Name the key will refer to in .Renviron. Should be specific (ie HUBSPOT_KEY, not KEY)

key

Authentication key - or other reference!

Examples

1
2
set_key_Renviron("PRODUCT_KEY", "mykey")
keyforscript <- Sys.getenv("PRODUCT_KEY")

aamangold/aamhelpers documentation built on June 3, 2019, 11:06 p.m.