Learn R Programming

chatAI4R (version 1.3.1)

Chat-Based Interactive Artificial Intelligence for R

Description

The Large Language Model (LLM) represents a groundbreaking advancement in data science and programming, and also allows us to extend the world of R. A seamless interface for integrating the 'OpenAI' Web APIs into R is provided in this package. This package leverages LLM-based AI techniques, enabling efficient knowledge discovery and data analysis. The previous functions such as seamless translation and image generation have been moved to other packages 'deepRstudio' and 'stableDiffusion4R'.

Copy Link

Version

Install

install.packages('chatAI4R')

Monthly Downloads

164

Version

1.3.1

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Satoshi Kume

Last Published

January 10th, 2026

Functions in chatAI4R (1.3.1)

completions4R

completions4R: Generate text using OpenAI completions API (Legacy - DEPRECATED)
chat4Rv2

chat4Rv2: Interact with gpt-4o-mini (default) using OpenAI API
convertRscript2Function

convertRscript2Function
chat4R_streaming

chat4R_streaming: Interact with GPT-4o (default) with streaming using OpenAI API and set system context
checkErrorDet

Check Error Details
checkErrorDet_JP

Check Error Details in Japanese
convertScientificLiterature

convertScientificLiterature
convertBullet2Sentence

convertBullet2Sentence
createEBAYdes

Create eBay Product Description
conversation4R

Conversation Interface for R
createSpecifications4R

Create Specifications for R Function
designPackage

designPackage
enrichTextContent

Enrich Text Content v2
ionet_models

ionet_models: Retrieve the available model list from io.net API
extractKeywords

extractKeywords
multiLLMviaionet

multiLLMviaionet: Execute ALL available LLM models simultaneously via io.net API
list_ionet_models

list_ionet_models: Display available LLM models on io.net API
interpretResult

Interpret Analysis Results
geminiGrounding4R

Gemini API Google Search Grounding Request (v1/v1beta, 2025-07)
gemini4R

Gemini API Request (v1beta, 2025-07)
createImagePrompt_v2

Generate Image Prompts version 2
createImagePrompt_v1

Create Image Prompt version 1
revisedText

Revised Scientific Text
discussion_flow_v2

discussion_flow_v2: Interactions and Flow Control Between LLM-based Bots (LLBs)
ngsub

ngsub
discussion_flow_v1

discussion_flow_v1: Interactions and Flow Control Between LLM-based Bots (LLBs)
print.multiLLM_result

Print method for multiLLM_result
createRcode

Create R Code from Clipboard Content and Output into the R Console
createRfunction

Create R Function from Selected Text or Clipboard Content and Output into the R Console
print_multiLLM_results

Pretty-print multiLLMviaionet results
refresh_ionet_models

refresh_ionet_models: Manually refresh the cached model list from io.net API
proofreadText

proofreadText
textFileInput4ai

Send Text File Content to OpenAI API and Retrieve Response
vision4R

Vision API Function using OpenAI's Vision API
searchFunction

Search R Functions based on Text
speakInEN

Speak Selected Text in English
slow_print_v2

Slowly Print Text
speakInJA

Speak Selected Text in Japanese
proofreadEnglishText

Proofread English Text
supportIdeaGeneration

supportIdeaGeneration: Support Idea Generation from Selected Text or Clipboard.
removeQuotations

Remove All Types of Quotations from Text
textEmbedding

Text Embedding from OpenAI Embeddings API
replicatellmAPI4R

replicatellmAPI4R: Interact with Replicate API for LLM models in R
speakInJA_v2

Speak Clipboard in Japanese
chat4R

Chat4R: Interact with gpt-4o-mini (default) using OpenAI API
TextSummaryAsBullet

Summarize Text into Bullet Points
DifyChat4R

DifyChat4R Function (Completion Messages Only)
autocreateFunction4R

autocreateFunction4R (development / experimental)
OptimizeRcode

Optimize and Complete R Code
TextSummary

Summarize Long Text
addRoxygenDescription

Add Roxygen Description to R Function
RcodeImprovements

Suggest Improvements to the R Code on Your Clipboard
addCommentCode

Add Comments to R Code
chat4R_history

chat4R_history: Use chat history for interacting with GPT.