Learn R Programming

⚠️There's a newer version (0.12.0) of this package.Take me there.

gemini.R (version 0.11.0)

Interface for 'Google Gemini' API

Description

Provides a comprehensive interface for Google Gemini API, enabling users to access and utilize Gemini Large Language Model (LLM) functionalities directly from R. This package facilitates seamless integration with Google Gemini, allowing for advanced language processing, text generation, and other AI-driven capabilities within the R environment. For more information, please visit .

Copy Link

Version

Install

install.packages('gemini.R')

Monthly Downloads

725

Version

0.11.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jinhwan Kim

Last Published

March 29th, 2025

Functions in gemini.R (0.11.0)

gen_image

Generate and save image using Gemini
gen_tests

Generates unit test code for an R function.
gen_docs

Generate Roxygen Documentation
gemini_chat

Multi-turn conversations (chat)
gemini_audio

Analyze audio using Gemini
gemini_audio.vertex

Analyze Audio using Gemini Vertex API
gemini_image.vertex

Generate text from text and image with Gemini Vertex API
gemini

Generate text from text with Gemini
addHistory

Add history for chating context
countTokens

Count Tokens for Gemini Content (Including Images)
gemini.vertex

Generate text from text with Gemini Vertex API
setAPI

Set API key
setEnv

Store API key in local environment file
gemini_image

Generate text from text and image with Gemini
token.vertex

Generate Gemini Access Token and Endpoint URL