setEnv: Store API key in local environment file

View source: R/setEnv.R

setEnvR Documentation

Store API key in local environment file

Description

Saves the API key to a local .Renviron file for persistent access across R sessions

Usage

setEnv(api_key, overwrite = TRUE, install_message = TRUE)

Arguments

api_key

The API key to store

overwrite

Whether to overwrite the existing API key if already present in .Renviron (default: TRUE)

install_message

Whether to display a message about how to use the API (default: TRUE)

Value

No return value, called for side effects.

See Also

setAPI which sets the API key for the current session only

Examples

## Not run: 
setEnv("your_api_key")

## End(Not run)


gemini.R documentation built on April 11, 2025, 6:11 p.m.

Related to setEnv in gemini.R...