Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Working with @Generable and @Guide in Foundation Models

    July 18, 2025

    Navigating the labyrinth of forks

    July 18, 2025

    OpenAI unveils ‘ChatGPT agent’ that gives ChatGPT its own computer to autonomously use your email and web apps, download and create files for you

    July 18, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»Cloud Computing»GenAI tools for R: New tools to make R programming easier
    Cloud Computing

    GenAI tools for R: New tools to make R programming easier

    big tee tech hubBy big tee tech hubMarch 25, 2025002 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    GenAI tools for R: New tools to make R programming easier
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link



    3848270 0 59817000 1742893304 iStock 2022711102 4654d6

    Queries and chats can also include uploaded images with the images argument.

    ollamar

    The ollamar package starts up similarly, with a test_connection() function to check that R can connect to a running Ollama server, and pull("the_model_name") to download the model such as pull("gemma3:4b") or pull("gemma3:12b").

    The generate() function generates one completion from an LLM and returns an httr2_response, which can then be processed by the resp_process() function.

    
    library(ollamar)
    
    resp <- generate("gemma2", "What is ggplot2?")
    resp_text <- resp_process(resp)
    
    

    Or, you can request a text response directly with a syntax such as resp <- generate("gemma2", "What is ggplot2?", output = "text"). There is an option to stream the text with stream = TRUE:

    
    resp <- generate("gemma2", "Tell me about the data.table R package", output = "text", stream = TRUE)
    
    

    ollamar has other functionality, including generating text embeddings, defining and calling tools, and requesting formatted JSON output. See details on GitHub.

    rollama was created by Johannes B. Gruber; ollamar by by Hause Lin.

    Roll your own

    If all you want is a basic chatbot interface for Ollama, one easy option is combining ellmer, shiny, and the shinychat package to make a simple Shiny app. Once those are installed, assuming you also have Ollama installed and running, you can run a basic script like this one:

    
    library(shiny)
    library(shinychat)
    
    ui <- bslib::page_fluid(
      chat_ui("chat")
    )
    
    server <- function(input, output, session) {
      chat <- ellmer::chat_ollama(system_prompt = "You are a helpful assistant", model = "phi4")
      
      observeEvent(input$chat_user_input, {
        stream <- chat$stream_async(input$chat_user_input)
        chat_append("chat", stream)
      })
    }
    
    shinyApp(ui, server)
    
    

    That should open an extremely basic chat interface with a model hardcoded. If you don’t pick a model, the app won’t run. You’ll get an error message with the instruction to specify a model along with those you’ve already installed locally.

    I’ve built a slightly more robust version of this, including dropdown model selection and a button to download the chat. You can see that code here.

    Conclusion

    There are a growing number of options for using large language models with R, whether you want to add functionality to your scripts and apps, get help with your code, or run LLMs locally with ollama. It’s worth trying a couple of options for your use case to find one that best fits both your needs and preferences.



    Source link

    easier GenAI programming Tools
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    Solution Validation Services Matter More Than Ever Before

    July 18, 2025

    Highlights for Consumer Industries from Cisco Live US 2025

    July 17, 2025

    How can a Product Manager be GenAI ready?

    July 17, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Working with @Generable and @Guide in Foundation Models

    July 18, 2025

    Navigating the labyrinth of forks

    July 18, 2025

    OpenAI unveils ‘ChatGPT agent’ that gives ChatGPT its own computer to autonomously use your email and web apps, download and create files for you

    July 18, 2025

    Big milestone for the future of quantum computing.

    July 18, 2025
    Advertisement
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Working with @Generable and @Guide in Foundation Models

    July 18, 2025

    Navigating the labyrinth of forks

    July 18, 2025

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2025 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.