simon coulombe's Avatar

simon coulombe

@coulsim.bsky.social

Gosseux d'données/pelleteux de cloud. Economist turned data scientist in the insurance industry. EN/FR #rstats en production #opendata blog: www.simoncoulombe.com github: simoncoulombe

1,473 Followers  |  161 Following  |  215 Posts  |  Joined: 31.08.2023  |  2.1318

Latest posts by coulsim.bsky.social on Bluesky

Preview
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
Post image Post image

#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
Post image

#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
Post image

#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
Post image

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
Video thumbnail

📢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
Preview
Sylvio Le Blanc, roi du courrier des lecteurs Version intégrale

Oui c’était ça. 1600 lettres publiées lol
urbania.ca/article/sylv...

11.08.2025 10:04 — 👍 0    🔁 0    💬 1    📌 0

@coulsim is following 19 prominent accounts