add_token: Set Lens Access Token

Description Usage Arguments Details Value Examples

View source: R/add_token.R

Description

This helper function allows you to set your API key in .Renviron file

Usage

1
add_token(token = NULL, overwrite = FALSE)

Arguments

token

Your Lens.org API token

overwrite

Whether to overwrite existing token

Details

modified from https://github.com/cwthom/TargomoR/blob/master/R/setup.R

Value

Invisibly, the API key

Examples

1
2
3
4
5
## Not run: 
# write to a global file at Sys.getenv("HOME")
addtoken(token = "YOUR_LENS_TOKEN")

## End(Not run)

sbalci/lens2r documentation built on Jan. 18, 2021, 9:12 a.m.