Learn R Programming

kosis (version 0.0.1)

kosis.setKey: Set KOSIS API Key

Description

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

KOSIS_API_KEY = "YOUR API KEY"

Usage

kosis.setKey(apiKey)

kosis.printKey()

Value

No return value, called to set api key

Arguments

apiKey

A string specifying KOSIS API key

Examples

Run this code

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

## Check API key
kosis.printKey()

Run the code above in your browser using DataLab