Chris Kenny, PhD's Avatar

Chris Kenny, PhD

@chriskenny

Postdoc, Princeton DDSS. PhD '25 Government @harvard.edu. Studies redistricting with #rstats. https://christophertkenny.com/

724
Followers
325
Following
196
Posts
19.09.2023
Joined
Posts Following

Latest posts by Chris Kenny, PhD @chriskenny

Yes, that’s part of the goal. It does not force the LLM to pick the LSP tool so it may still grep, but it gives it the option to use it. It will also automatically give it feedback as code changes, which should help it get the task correct without needing as many follow-up prompts

09.03.2026 13:13 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Using an R language server with Claude Code – Christopher T. Kenny Giving Claude access to an R LSP to improve its interaction with your codebase.

Here's a quick guide to setting up an R LSP for Claude Code in #rstats: christophertkenny.com/posts/2026-0...

Note that it uses the `languageserver` package at the moment, since I don't believe ark is exposed for a standalone mode yet.

08.03.2026 17:06 πŸ‘ 15 πŸ” 4 πŸ’¬ 1 πŸ“Œ 0

I see the appeal for a lot of social scientists. There are many folks in the field who are consumers of data analysis/statistics because they see it as necessary to publish research.

Many use RStudio and have no interest or experience using other IDEs or the CLI. This serves that group well.

07.03.2026 17:33 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Introducing AI in RStudio Today we’re introducing AI in RStudio. We’ve embedded a specialized agent directly into RStudio so it can read your live session context and provide more accurate assistance for data science and analy...

News for #RStats folks who use RStudio and are interested in AI, via @posit.co: "AI in RStudio is here. We’ve embedded a specialized agent, Posit Assistant, directly into RStudio, transforming the IDE into a powerful, context-aware collaborator for data analysis."
It's a $20/mo subscription.

06.03.2026 20:45 πŸ‘ 5 πŸ” 3 πŸ’¬ 0 πŸ“Œ 0

Over the weekend, I started collecting/organizing a list of cool #rstats skills for LLMs at github.com/christopherk.... Please open an issue or PR in any awesome additions you see!

Includes a section for helpful posts like @ivelasq3.bsky.social's⬇️

04.03.2026 22:00 πŸ‘ 40 πŸ” 12 πŸ’¬ 2 πŸ“Œ 0

One weird pattern from playing with Claude Code and GitHub Copilot CLI:

Claude Code loves to use bash and python, even when working on R code (and then gets confused since there is no 🐍installed)

Copilot, with the same models, seems to naturally know to use R and powershell

04.03.2026 13:50 πŸ‘ 4 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0

I moved everything CRAN-related to one proton mail (to avoid changing academic emails) and it’s incredibly nice to have it all in one place without any other noise. Much easier to keep track of deadlines…

03.03.2026 20:58 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
PlanScore’s New Midterm-Ready Vote Predictions This week, the 2026 mid-term election season is kicking off in earnest with U.S. House primaries in Arkansas, Texas, and North Carolina…

Getting ready for the 2026 mid-terms, every PlanScore analysis page moving forward will now feature a new scenario adjustment tool to make it easy to change, view, and share potential outcomes that may differ from 2024

medium.com/planscore/pl...

Try with this NC map:

planscore.org/plan.html?20...

02.03.2026 17:27 πŸ‘ 11 πŸ” 6 πŸ’¬ 0 πŸ“Œ 2

Thanks Rohan! Hope you’re doing well

25.02.2026 14:30 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Read the preprint here: arxiv.org/pdf/2407.11336

25.02.2026 14:15 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image Post image

Redistricting Reforms Reduce Gerrymandering by Constraining Partisan Actors is now forthcoming in the APSR!

We use a game theoretic treatment and continuous DiD(iD) to show when redistricting reforms work

with @corymccartan.com, @simko.bsky.social, Emma Ebowe, Michael Zhao, and Kosuke Imai

25.02.2026 14:15 πŸ‘ 18 πŸ” 9 πŸ’¬ 3 πŸ“Œ 0
Preview
Packages 2025 Wrapped – Christopher T. Kenny A look at my R package updates from 2025

My 2025 #rstats wrapped in honor of CRAN reopening for 2026: christophertkenny.com/posts/2026-0...

Fun fact: I made 43 CRAN uploads in 2025 and 41 of them were successful!

07.01.2026 14:02 πŸ‘ 6 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1

Throwback to my favorite #rstats Ripley crashout where he removed a package because a maintainer called him Brian

11.12.2025 17:16 πŸ‘ 7 πŸ” 2 πŸ’¬ 2 πŸ“Œ 0

Some people are fundamentally unkind. It's a shame. The broader R community is incredible and the other CRAN volunteers especially so.

11.12.2025 17:14 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Nothing like starting the day responding to a Brian Ripley hissy fit...

He removes an #rstats package before the scheduled date, gets a bounceback from a *downstream* package, and archives all of the packages...

CRAN volunteers time is the most valuable resource, yet Ripley just loves wasting it

11.12.2025 16:09 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 1

Oh awesome, thank you both. I had looked for this a few weeks ago and didn’t see an option

10.12.2025 19:21 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Glad we have LLMs in everything so that GitHub tries to create commit messages like this... Just makes more work by having to delete the message to write in a correct one instead of just writing the correct one in the first place

10.12.2025 15:26 πŸ‘ 5 πŸ” 1 πŸ’¬ 2 πŸ“Œ 0
Chapter 20 Packages | Mastering Shiny If you are creating a large or long-term Shiny app, I highly recommend that you organise your app in the same way as an R package. This means that you: Put all R code in the R/ directory. Write a...

Is there an #rstats best practices for including a shiny app in an R package? I see mastering-shiny.org/scaling-pack... by @hadley.nz and github.com/daattali/ddpcr by Dean Attali (couldn't find his handle!) - just curious on understanding best practices, bunding data, app, and the www folder etc.

10.12.2025 00:49 πŸ‘ 11 πŸ” 3 πŸ’¬ 5 πŸ“Œ 0
Open Source Geometry Engine (GEOS) C API Provides the Open Source Geometry Engine (GEOS) as a C API that can be used to write high-performance C and C++ geometry operations using R as an interface. Headers are provided to make linking ...

@corymccartan.com and I have been playing with @paleolimbot.bsky.social's #rstats `libgeos` package. It's pretty awesome.

Handles the hard parts so that you can connect Rcpp to GEOS with a few lines of code. Got some existing, optimized `geos` code to ~3x faster!

paleolimbot.github.io/libgeos/

18.11.2025 23:01 πŸ‘ 9 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0

Oh awesome, thanks for sharing. Kieran Healy is always doing awesome work. Not shocked that he did this first!

07.11.2025 16:42 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
A dot density map of NYC where each point represents 50 voters. Lines show NYC neighborhoods. Density is highest in Manhattan with a lot of dots for Mamdani. Areas of Staten Island and Brooklyn are dense and yellow for Cuomo.

A dot density map of NYC where each point represents 50 voters. Lines show NYC neighborhoods. Density is highest in Manhattan with a lot of dots for Mamdani. Areas of Staten Island and Brooklyn are dense and yellow for Cuomo.

NYC 2025 Mayoral results as a dot density plot using the `dots` #rstats package (cran.r-project.org/web/packages...)

07.11.2025 14:01 πŸ‘ 46 πŸ” 11 πŸ’¬ 4 πŸ“Œ 5
Preview
GitHub - hadley/genzplyr: dplyr but make it bussin fr fr no cap dplyr but make it bussin fr fr no cap. Contribute to hadley/genzplyr development by creating an account on GitHub.

Do you teach #rstats? Do your students complain about how lame and old-fashioned dplyr is? Don't worry: I have the solution for you: github.com/hadley/genzp....

genzplyr is dplyr, but bussin fr fr no cap.

06.11.2025 23:25 πŸ‘ 460 πŸ” 167 πŸ’¬ 42 πŸ“Œ 55
Post image

Support for Prop 50 in California is highly correlated with support for Harris in 2024 and even runs slightly ahead of her

A sad day for democracy to have the future of competitive elections literally on the ballot and yet be so utterly defeated.

Stands at 63.9% voting yes.

06.11.2025 02:24 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Thanks for sharing!

05.11.2025 20:39 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
How to Analyze bluesky Posts and Trends with R - Storybench If all you're doing on bluesky is scrolling, liking and posting, then you're riding a bike with training wheels. Here are simple tools using its open-source skeleton.

There are a lot of great posts out there that aren't very highly ranked.

Don't rely on bluesky to find you great content; you can find it on your own! Here's how:

#Rstats via @northeasternu.bsky.social's Storybench

www.storybench.org/how-to-analy...

05.11.2025 19:58 πŸ‘ 136 πŸ” 6 πŸ’¬ 2 πŸ“Œ 1

Yeah and once you start adding known precinct covariate, the possibilities really explode. We ended up with several internal (quarto) dashboards to handle plotting everything on the fly

05.11.2025 20:33 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
2025 NYC Mayoral Race by Neighborhood CBS News estimates of how different parts of the city voted

NYC map shaded by vote margin!

We collected very granular precinct data and aggregated it to neighborhoods people actually recognize

Bushwick, Flushing, Upper West Side, etc.

datawrapper.dwcdn.net/Wrd72/

H/T @mitelectionlab.bsky.social @chriskenny.bsky.social @corymccartan.com @simko.bsky.social

05.11.2025 17:26 πŸ‘ 10 πŸ” 4 πŸ’¬ 0 πŸ“Œ 0

For the on-air presenting and digital media, we also built a live neighborhood map: www.cbsnews.com/news/nyc-may... (now filled by margin!)

05.11.2025 17:23 πŸ‘ 5 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Here at the CBS News data desk with @chriskenny.bsky.social and @simko.bsky.social! Looking at the VA numbers

05.11.2025 00:55 πŸ‘ 12 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Post image Post image Post image

Finishing up prep for election night at CBS News' Data Desk!

Sunday in NYC was the highest single day early votes since at least 2019 and maybe ever:

04.11.2025 19:25 πŸ‘ 5 πŸ” 2 πŸ’¬ 0 πŸ“Œ 1