set_api_key: Set api key to the .Renviron

Description Usage Arguments Value Author(s) Examples

View source: R/set_api_key.R

Description

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

Usage

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

Arguments

api_key

character. The personal api code. To request an API key see: http://developer.zeit.de/quickstart/

path

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

Value

None.

Author(s)

Jan Dix <jan.dix@uni-konstanz.de>

Examples

1
2
3
4
5
6
## Not run: 
# this is not an actual api key
api_key <- "5t5yno5qqkufxis5q2vzx26vxq2hqej9"
set_api_key(api_key, tempdir())

## End(Not run)

rzeit2 documentation built on May 2, 2019, 2:21 p.m.