


If there's been a recent update to a package you're using, ChatGPT won't know about it, since its training data ends in 2021.

This is obviously less than ideal if you need a reproducible workflow. For instance, when I asked multiple times for a ggplot2 bar chart with blue bars, the code generated a graph with blue bars sometimes but not others, even though I submitted the exact same request.

But before you begin using ChatGPT and tools associated with it for projects in R, there are a few important things to keep in mind: (A large language model, or LLM, is the technology underpinning AI chatbots like OpenAI's ChatGPT.)Īn ecosystem is forming around ChatGPT and R, making it easy to incorporate the AI technology into your R language workflow. That means ChatGPT's power is available to any R programmer, even one who knows little about large language models. Without fine-tuning or being trained on a specific topic, ChatGPT can answer questions about a wide range of technology subjects-including how to write R code.
