Learn R Programming

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

gemini.R (version 0.10.1)

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

753

Version

0.10.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jinhwan Kim

Last Published

March 19th, 2025

Functions in gemini.R (0.10.1)

gemini_image

Generate text from text and image with Gemini
gemini_audio

Analyze audio using Gemini
gemini_audio.vertex

Analyze Audio using Gemini Vertex API
gen_tests

Generates unit test code for an R function.
countTokens

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

Generate text from text and image with Gemini Vertex API
setAPI

Set API key
gemini.vertex

Generate text from text with Gemini Vertex API
setEnv

Store API key in local environment file
token.vertex

Generate Gemini Access Token and Endpoint URL
gen_docs

Generate Roxygen Documentation
gemini

Generate text from text with Gemini
gemini_chat

Multi-turn conversations (chat)
addHistory

Add history for chating context