Learn R Programming

newsanchor (version 0.1.1)

set_api_key: Add API key to the .Renviron

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

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.

Examples

Run this code
# NOT RUN {
set_api_key(tempdir()) # you will be prompted to enter your API key.
# }

Run the code above in your browser using DataLab