Learn R Programming

gemini.R (version 0.12.0)

setAPI: Set API key

Description

Set API key as an environment variable

Usage

setAPI(api_key)

Value

No return value, called for side effects.

Arguments

api_key

The API key to set

See Also

https://makersuite.google.com/app/apikey

Examples

Run this code
if (FALSE) {
setAPI("my_api_key")
}

Run the code above in your browser using DataLab