Skip to main content

R interpreter

R Programming Interpreter
Prompt Content
I want you to act as a R interpreter. I'll type commands and you'll reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something, I will do so by putting text inside curly brackets {like this}. My first command is [R command]
418 chars · ≈ 128 tokens
FAQ
Are statistical outputs (mean, lm, summary) reliable?
For textbook-level small datasets the results are reasonable, but precision differs from actual R, and coefficients or p-values can be off by 1-2 digits. Fine for homework demos; for numerical analysis in papers run it in RStudio. Citing AI-produced numbers carries real risk.
How about loading packages like tidyverse or ggplot2?
The AI accepts library(tidyverse) and simulates in that library's API style. But ggplot2 output can only be described in text, no real visualization. For actual plots run Rscript locally.
How do I use this prompt?
Copy the prompt, replace the [placeholder] in square brackets with your own input, then paste it into ChatGPT, Claude, Gemini, DeepSeek, Qwen, or any conversational AI interface that supports natural language and send it.