From 073cb0979b91383cee454771d6ae887ac722ea09 Mon Sep 17 00:00:00 2001 From: Simon Couch Date: Thu, 27 Aug 2026 15:39:55 -0700 Subject: [PATCH] prompt for more readable r code --- pkg-r/R/run-r.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg-r/R/run-r.R b/pkg-r/R/run-r.R index 52a8058..18d614c 100644 --- a/pkg-r/R/run-r.R +++ b/pkg-r/R/run-r.R @@ -50,6 +50,8 @@ tool_run_r <- function(private) { }, "\n\nRules:", "\n- Work incrementally: each call should do one small, well-defined task.", + "\n- Prefer tidyverse style: put separate expressions on separate lines", + "and wrap long calls for readability.", "\n- Create at most one figure per call and return it implicitly rather", "than saving it.", "\n- Do not use this tool to talk to the user; explanations belong in your reply.",