Claude R Tidyverse Expert
Claude R Tidyverse Expert. GitHub Gist: instantly share code, notes, and snippets.
I was loving Claude Code... until I tried it with #rstats. Constant errors, wouldn't use the tidyverse even when asked, "optimized" functions were slower.
Frustrated, I started a session just to teach R to Claude and summarize what it learned into a CLAUDE.md file gist.github.com/sj-io/3828d6...
21.08.2025 10:18 — 👍 111 🔁 25 💬 11 📌 2
Where is the cut-off? Somewhere between Florida's 11.34 and Maine 11.30 ?
25.09.2025 04:01 — 👍 1 🔁 0 💬 0 📌 0
wiser words were never spoken!
I'd say about half of my claude.md file is basically me imploring it to stop with the compliments.
25.09.2025 03:59 — 👍 1 🔁 0 💬 1 📌 0
the main problem with #3 is that the path to my project is hard-coded in mcp.json, so it seems I would need to changer that path every time I switch project.
Anyway, looking for tips regarding this workflow.
If you havent tried it, give agent mode with claude sonnet 4.0 a try,it's a game changer
24.09.2025 15:51 — 👍 1 🔁 0 💬 0 📌 0
#3 Start an R mcp server over ssh on the posit connect server to allow copilot access to environment and up-to-date docs.
This is also my worst hacks and I'm looking for tips:
In the mcp.json settings (first pic) I use ssh to call start_mcp_server.sh (second pic)
24.09.2025 15:51 — 👍 1 🔁 0 💬 1 📌 0
#2 Tell the agent to launch R terminals using my start_r.sh script
-There are multiple R versions on the server and the default one isnt the one I use.
-Posit Connect sets a bunch of environment variables I need to set manually.
This script defines the env vars and launches the correct R version.
24.09.2025 15:51 — 👍 1 🔁 0 💬 1 📌 0
#1 Edit the code directly on the posit connect server
Use the "remote-ssh" extension to connect to your server so that the agent actually edits the code where it will run.
24.09.2025 15:51 — 👍 1 🔁 0 💬 1 📌 0
Hey #rstats,
What are your best workflow tips/hacks for working with R and github copilot in agent mode in a corporate environment on a remote @posit.co Connect Server?
I have the follow to share, but there must be better ways to do what I'm doing.
1/n
24.09.2025 15:51 — 👍 2 🔁 0 💬 1 📌 0
lol
24.09.2025 00:55 — 👍 1 🔁 0 💬 0 📌 0
!
16.09.2025 22:43 — 👍 0 🔁 0 💬 0 📌 0
No answer here, I just wanted to say I like workflow questions.
I think I used the approach described in the issue (using source() to break down scripts).
13.09.2025 01:58 — 👍 1 🔁 0 💬 0 📌 0
follow up:
On m'a dit qu'il y a une compagnie qui s'appelle "François Lambert" basée à Outremont qui pense être championne des pannes.
C'est pas le cas.
Un famélique 17 journées avec une coupure de courant en 1184 jours. (ça peut durer des secondes).
source:le registre des entreprises, info-panne
05.09.2025 04:01 — 👍 2 🔁 0 💬 1 📌 0
(yes I saw your thread about this metric)
02.09.2025 16:49 — 👍 1 🔁 0 💬 0 📌 0
I guess they don't ask how many 'r' are in strawberry in those olympiads
:)
02.09.2025 16:48 — 👍 0 🔁 0 💬 1 📌 0
Your house is powered by your phone battery.
Welcome to the future! :)
02.09.2025 13:53 — 👍 0 🔁 0 💬 0 📌 0
📢blog "Qui manque le plus souvent de courant?" où j'utilise les données d'info-panne que j'accumule depuis 3 ans pour identifier la personne qui a le plus souvent dû allumer ses chandelles et remettre son micro-onde à l'heure vu ses 68 jours de pannes!
shorturl.at/ORGQE
#rstats @hydroquebec.com
02.09.2025 12:42 — 👍 5 🔁 1 💬 0 📌 1
as one should
lol
02.09.2025 01:35 — 👍 0 🔁 0 💬 0 📌 0
hey c'est gentil! Je pense que je vais finir hydro en premier parce que ça fait quand même 3 ans que j'accumule le data :)
02.09.2025 00:54 — 👍 1 🔁 0 💬 0 📌 0
2️⃣"Que devient le territoire?"
On regarde les raster du Annual Crop Inventory de 2011 et 2024 pour établir la matrice origine-destination des pixels. Genre, est-ce que la transition la plus fréquence d'un carré 30x30 mètres c'est de "terre humide" vers "urbanisé" ou bien "blé d'hiver" vers "maïs" ?
02.09.2025 00:43 — 👍 0 🔁 0 💬 3 📌 0
1️⃣ "Qui a le plus souvent manqué d'électricité depuis 2022" ?
On regarde les polygons d'info-panne que je sauvegarde quotidiennement depuis 2022 et j'essaie d'identifier le pauvre hère qui a le plus souvent dû allumer ses chandelles. On pourra lui poster une chandelle pour le consoler, lol.
02.09.2025 00:42 — 👍 0 🔁 0 💬 1 📌 0
J'ai deux blogs posts qui sont presque terminés, mais j'ai un peu la flemme et j'hésite sur lequel gosser.
Je me tourne donc vers toi, oui, toi, pour m'aider à décider :P
Voici les 2 prétendants:
02.09.2025 00:42 — 👍 0 🔁 0 💬 1 📌 0
I understand you can import the MTIF backup directly into Hugo/jekyll and keep going.
Things to keep in mind - Apparently you need to make a separate request to typepad support to get your images out.
30.08.2025 14:30 — 👍 1 🔁 0 💬 0 📌 0
Oh! Sorry to hear that. I think for longevity you want to go with a bunch of static files that are built into a website then self hosted.
Hugo and Jekyll are the most well established site builders , but I use quarto because I am a dumb R user.
You could migrate WCI and keep going on those.
30.08.2025 14:27 — 👍 1 🔁 0 💬 0 📌 0
lol non pour un password j'y avais jamais pensé j'avoue que ce serait malade!
Je pense à une utilisation dans un username, genre "Mr Simon" ou carrément " ".
Parce que fondamentalement ce n'était certainement pas pour empêcher 2 mots de se faire séparer que je le faisais à disons 15 ans.
27.08.2025 01:49 — 👍 0 🔁 0 💬 0 📌 0
pépère a appris dans les tranchées lol
je me demande si ça servait pas aussi pour un username sur les BBS ou IRC, c'est pas clair
27.08.2025 01:42 — 👍 1 🔁 0 💬 1 📌 0
"dans mon temps on n'avait pas assez d'IRC pour la soundblaster, le graveur pis le modem en même temps".
27.08.2025 01:39 — 👍 1 🔁 0 💬 0 📌 0
hey j'ai montré ctrl-c+ctrl-v à la job à du monde qui programme plus d'une fois.
pendant ce temps là j'essaie de me rappeler pourquoi je sais par coeur que ALT+0160 c'est le non-breaking space. lol
27.08.2025 01:33 — 👍 1 🔁 0 💬 2 📌 0
TIL enabling game mode helps a lot with input lag when trying to play my old NES on a modern tv.
I was getting frustrated at not being able to do stuff I could easily do as a 7 years old. Turns out it was mostly the ~5? frames input lag.
26.08.2025 02:47 — 👍 0 🔁 0 💬 0 📌 0
ils mentionnent Henri Marineau dans l’article aussi, je l’avais oublié
11.08.2025 10:27 — 👍 0 🔁 0 💬 0 📌 0
Research Specialist at Princeton University's Eviction Lab
R programmer & housing analyst
(He/Him) Folk Technologist • anthony.moser@gmail.com • N4EJ • http://www.BetterDataPortal.com • baker in The FOIA Bakery • http://publicdatatools.com • http://deseguys.com • #1 on hackernews when you search for "hater"
#rstats user and developer. umairdurrani.com
Youth researcher. Bayesian surveyor of inner worlds. Tired baritone.
Professor at Wharton, studying AI and its implications for education, entrepreneurship, and work. Author of Co-Intelligence.
Book: https://a.co/d/bC2kSj1
Substack: https://www.oneusefulthing.org/
Web: https://mgmt.wharton.upenn.edu/profile/emollick
Remote Sensing Specialist at Agriculture & Agri-Food Canada (AAFC). Satellite mapping Canadian crops via #cropmap25 🌾🌽🛰️🗺️🍁
#RemoteSensing #EarthObservation #GeoSky | #Agriculture #CdnAg #AgSky | #Satellites #Landsat #Sentinel #SAR | #OpenData #OpenGov
I’m a data engineer-ish person, currently working in healthcare tech startup, focused on improving data quality.
(she/her)
Editor. https://policyoptions.irpp.org/
Retired reporter. https://www.theglobeandmail.com/authors/les-perreaux/
Hobby consultant, 💎🪚🎮🖥️🎙️🎹🎧👨🍳📷🪛➕
Quant UX Researcher @ GCP (posts are my own)
Writes a data newsletter: https://www.counting-stuff.com/
https://linktr.ee/randy_au
Languages: EN/JP/CN
Associate professor of statistics and data science at the University of St Thomas. Into data visualization and reproducible research, obsessed with R. pronoun.is/she
website: amelia.mn
mastodon: @vis.social/@amelia
software engineer | #rstats | PDX | she/her
Statistical Data Artist & Scientist at Australian National University 🇳🇿 Interested in mixed models, experimental design, plant breeding 🌱, bioinfo 🧬, data vis 📊, statistical practice, ML/AI 👩🏻💻 Dabbles in UI, UX, front-end & #rstats 📦 dev
emitanaka.org
R, data science, dataviz, maps, experimental design, raytracing. Developer of rayshader, rayrender, and the rayverse | PhD in Physics from Johns Hopkins | Penn
Sworn in Data Janitor
blog: http://brodrigues.co
youtube: http://is.gd/NjybjH
mastodon: http://is.gd/nOyGht
twitter: @brodriguesco
"nix solves this"
Associate Professor of Biostatistics and Biomedical Engineering at Johns Hopkins. stephaniehicks.com
Computational geographer. Associate Professor at AMU, Poznan, Poland. Co-author of http://r.geocompx.org, http://py.geocompx.org, and http://tmap.geocompx.org books. #rstats #rspatial #geocompx
https://jakubnowosad.com/
Ph.D., epidemiology. research software engineer @ Stanford Health Policy. living in Ann Arbor. open-source data science. causal inference. doing poems on aircrafts. approximately Bayesian. formerly Posit, Apple, AmeriCorps. 心を燃やせ。sic semper tyrannis.
Owner of Lander Analytics
Author of R for Everyone
Lecturer at Columbia Business School and Princeton University
Organizer of NY Open Statistical Programming Meetup
jaredlander.com
Senior Principal Software Engineer at Red Hat AI | Open Source Leader at Argo, Kubeflow, Kubernetes, CNCF | Maintainer of KServe, XGBoost, TensorFlow | Keynote Speaker | Author | Technical Advisor
More info: http://terrytangyuan.xyz
We are hiring!