set_api_key: Add API key to the .Renviron

Description Usage Arguments Value Author(s) Examples

Description

Function to set you API Key to the R environment when starting using newsanchor package. Attention: You should only execute this functions once.

Usage

1
set_api_key(path = stop("Please specify a path."))

Arguments

path

character. Path where the environment is stored. Default is the normalized path.

Value

None.

Author(s)

Jan Dix <jan.d@correlaid.org>

Examples

1
2
3
4
## Not run: 
set_api_key(tempdir()) # you will be prompted to enter your API key.

## End(Not run)

newsanchor documentation built on June 29, 2019, 5:02 p.m.