Sign in

James Wade

@jameshwade.bsky.social
2.1K followers 1.4K following 37 posts

Analytical chemist in industry working on materials characterization and data science. Interested in #rstats, modeling, & sustainability. Owner of many pets.

PostsRepliesMedia
Reposted by James Wade
Jon Harmon (he/him/his) @jonthegeek.com · 10/08/2026
When @jameshwade.bsky.social mentioned hex stickers at our last #PositConf2026 speaker training, I realized I didn't have any for stbl.wrangle.zone, the #RStats 📦 I'm speaking about! Thankfully I had time to order a small batch. The url is unreadable, I'll have to fix that if I order another batch.
Hex logo stickers for the R package stbl, featuring the letters stbl seemingly engraved in stone.
061
James Wade @jameshwade.bsky.social · 15/02/2026
Coding agents can explore codebases. But you can't optimize them, compose them, or put them in a pipeline. RLMs can do all of that. They're DSPy modules, not agents. I built a shiny app to understand how they work.
161
James Wade @jameshwade.bsky.social · 08/02/2026
I built an R package that turns Shiny apps into UIs that render directly inside Claude Desktop or ChatGPT. It's called shinymcp. Drop-downs, plots, tables all inline in the chat. github.com/jameshwade/shinymcp
36411
James Wade @jameshwade.bsky.social · 07/01/2026
My holiday project was building dsprrr, a package for declarative LLM programming in R, inspired by DSPy. The core idea is to treat LLM workflows as programs you can systematically optimize, not prompt strings you tweak by hand.
dsprrr
Programming—not prompting—LLMs in R
dsprrr brings the power of DSPy to R. Instead of wrestling with prompt strings, declare what you want, compose modules into pipelines, and let optimization find the best prompts automatically.

# Install
pak::pak("JamesHWade/dsprrr")

# That's it. Start using LLMs.
library(dsprrr)
dsp("question -> answer", question = "What is the capital of France?")
#> "Paris"
Getting Started: Configure Your LLM
OpenAI
Anthropic
Gemini
Ollama
Auto-detect
141
Reposted by James Wade
Simon P. Couch @simonpcouch.com · 09/12/2024
Introducing ensure, a new #rstats package for LLM-assisted unit testing in RStudio! Select some code, press a shortcut, and then the helper will stream testing code into the corresponding test file that incorporates context from your project. github.com/simonpcouch/...
312526
James Wade @jameshwade.bsky.social · 18/11/2024
Jumping on the #rstats "we're so back" train 🚂 Here's two fun (unrelated) things I scrolled upon tonight: 📊 tinyplot - base R plotting system with grouping, legends, facets, and more 👀 github.com/grantmcdermo... 🔎 openalexR - Clean API access to search OpenAlex docs.ropensci.org/openalexR/ar...
github.com
GitHub - grantmcdermott/tinyplot: Lightweight extension of the base R graphics system
Lightweight extension of the base R graphics system - grantmcdermott/tinyplot
1295
James Wade @jameshwade.bsky.social · 06/11/2024
Worst prank *ever*
read_csv <- function(file) { readr::read_csv(file) |> messy::messy()}
2193
James Wade @jameshwade.bsky.social · 05/11/2024
Having a hard time focusing on code today. Instead of refreshing news sites, tell me about an R package or function that made your life easier recently? I finally figured out how group_modify() works, and it's been a game-changer for some nested data madness. #rstats #dataBS
7183
James Wade @jameshwade.bsky.social · 29/10/2024
If you’ve been waiting try out LLMs with code, now is the time to do it.
130
Reposted by James Wade
Rachael Dempsey @rachaeldempsey.bsky.social · 29/10/2024
The last Wednesday of each month I host a Workflow Demo with various Posit folks 💛 Tomorrow Oct 30th @ 11am ET Ryan Johnson will share how to use #Quarto & #Shiny to create #Typst PDFs dynamically 🎉 add to 🗓️: pos.it/team-demo I know it's during R/Pharma 😬 so please know it's recorded too!
0165
James Wade @jameshwade.bsky.social · 29/10/2024
You can now build a chatbot in shiny in less than 20 lines of code. shinychat and elmer make this much easier than it was even a month ago. elmer nails LLM abstractions. Go check them out if you haven't already!
library(shiny)

ui <- bslib::page_fluid(
  shinychat::chat_ui("chat")
)

server <- function(input, output, session) {
  chat <- elmer::chat_openai(
    model = "gpt-4o-mini",
    system_prompt = "You are a pithy, but helpful assistant."
  )
  observeEvent(input$chat_user_input, {
    stream <- chat$stream_async(input$chat_user_input)
    shinychat::chat_append("chat", stream)
  })
}

shinyApp(ui, server)
180
James Wade @jameshwade.bsky.social · 29/10/2024
I had fun giving a talk at #rpharma about how to integrate AI into your shiny apps. You can check out my talk here: jameshwade.github.io/r-pharma-talk/
Integrating AI Assistants into Shiny Apps: Simply Development and Enhance User Experience
171