Learn R Programming

gemini.R (version 0.12.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.12.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jinhwan Kim

Last Published

April 10th, 2025

Functions in gemini.R (0.12.0)

token.vertex

Generate Gemini Access Token and Endpoint URL
gen_tests

Generates unit test code for an R function.
addHistory

Add history for chating context
countTokens

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

Analyze Audio using Gemini Vertex API
gemini_audio

Analyze audio using Gemini
gemini_search

Generate text with real-time information using Google Search (Grounding)
gemini_image.vertex

Generate text from text and image with Gemini Vertex API
gemini_searchR

Generate text with real-time information using Gemini (Retrieval)
gemini.vertex

Generate text from text with Gemini Vertex API
gemini

Generate text from text with Gemini
gen_docs

Generate Roxygen Documentation
gen_image

Generate and save image using Gemini
setAPI

Set API key
setEnv

Store API key in local environment file
gemini_chat

Multi-turn conversations (chat)
gemini_image

Generate text from text and image with Gemini