Learn R Programming

ecos (version 0.1.6)

ecos.setKey: Set ECOS API Key

Description

Save ECOS API key for the current session. To set it permanently, please add the following line to your .Renvrion file:

ECOS_API_KEY = YOUR API KEY

Usage

ecos.setKey(api_key)

ecos.printKey()

Value

No return value, called to set api key

Arguments

api_key

A string specifying ECOS API key

Examples

Run this code

## Set API Key for the current session
ecos.setKey("your_api_key")

## Check API key
ecos.printKey()

Run the code above in your browser using DataLab