Repost: The Modern R Stack for Production AI

R-bloggers 2025-06-03

[This article was first published on Getting Genetics Done, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

 Reposted from the original at: https://blog.stephenturner.us/p/r-production-ai

Python isn’t the only game in town anymore: R can interact with local and cloud LLM APIs, inspect and modify your local R environment and files, implement RAG, computer vision, NLP, evals, & much more.

There was a time in late 2023 to early 2024 when I and probably many others in the R community felt like R was falling woefully behind Python in tooling for development using AI and LLMs. This is no longer the case. The R community, and Posit in particular, have been on an absolute tear bringing new packages online to take advantage of all the capabilities that LLMs provide. Here are a few that I’ve used and others I’m keeping a close eye on as they mature.

I recently used the mall package to run a quick sentiment analysis of #Rstats posts on Bluesky:

Functions in the mall package integrate smoothly with piped workflows in dplyr. For example:

reviews |>  llm_sentiment(review)
Find this useful? Buy me a coffee! ☕

Getting Genetics Done by Stephen Turner is licensed under a Creative Commons Attribution (CC BY) License.
To leave a comment for the author, please follow the link and comment on their blog: Getting Genetics Done.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Continue reading: Repost: The Modern R Stack for Production AI