Meme by Programming Jokes I IT Humor & Memes
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")
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