jcrodriguez1989 / gemini

Interface to Google's Gemini from R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gemini coding assistant for RStudio

Meme by Programming Jokes I IT Humor & Memes

Installation

Install the current released version of {gemini} from CRAN:

install.packages("gemini")

Or install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("jcrodriguez1989/gemini")

Requirements

You need to setup your Gemini API key in R.

First you will need to obtain your Gemini API key. You can create an API key by accessing Gemini API page.

Then you have to assign your API key for usage in R, this can be done just for the actual session, by doing:

Sys.setenv(GEMINI_API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")

Or you can do it persistent (session-wide), by assigning it in your .Renviron file. For it, execute usethis::edit_r_environ(), and in that file write a line at the end your API key as

GEMINI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

About

Interface to Google's Gemini from R

License:GNU General Public License v3.0


Languages

Language:R 100.0%