James Wade's Avatar

James Wade

@jameshwade.bsky.social

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

2,043 Followers  |  1,428 Following  |  15 Posts  |  Joined: 18.08.2023  |  1.828

Latest posts by jameshwade.bsky.social on Bluesky

Video thumbnail

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/...

09.12.2024 15:02 โ€” ๐Ÿ‘ 122    ๐Ÿ” 27    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 2

Iโ€™d like to learn how the boundaries of the tidyverse have changed over time. Would you consider removing a package from the tidyverse - maybe you already have?

This overlaps with @ivelasq3.bsky.socialโ€™s question I think.

26.11.2024 03:10 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Great ๐Ÿ“ฆ name! Will be giving this a try for sure.

20.11.2024 00:06 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
GitHub - grantmcdermott/tinyplot: Lightweight extension of the base R graphics system Lightweight extension of the base R graphics system - grantmcdermott/tinyplot

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...

18.11.2024 03:02 โ€” ๐Ÿ‘ 28    ๐Ÿ” 5    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Would love to be included โœจ

08.11.2024 23:54 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

๐Ÿ˜

08.11.2024 00:29 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Update... I just pranked myself with this ๐Ÿ™ˆ

Protip: restart your session when you open a new file

06.11.2024 19:13 โ€” ๐Ÿ‘ 6    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Worst prank *ever*

06.11.2024 01:41 โ€” ๐Ÿ‘ 18    ๐Ÿ” 3    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 2

And in vctrs no less. I used that a few months back for a side project and felt so fancy

06.11.2024 01:07 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Do you use mirai directly or via something like crew?

06.11.2024 01:05 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Thatโ€™s a new one for me. Trying that out tomorrow

05.11.2024 23:44 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

05.11.2024 23:27 โ€” ๐Ÿ‘ 18    ๐Ÿ” 3    ๐Ÿ’ฌ 7    ๐Ÿ“Œ 2

If youโ€™ve been waiting try out LLMs with code, now is the time to do it.

29.10.2024 22:42 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

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!

29.10.2024 21:33 โ€” ๐Ÿ‘ 15    ๐Ÿ” 6    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
GitHub - hadley/elmer: Call LLM APIs from R Call LLM APIs from R. Contribute to hadley/elmer development by creating an account on GitHub.

elmer: github.com/hadley/elmer
shinychat: github.com/jcheng5/shin...

29.10.2024 19:40 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
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)

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)

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!

29.10.2024 19:39 โ€” ๐Ÿ‘ 7    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Integrating AI Assistants into Shiny Apps: Simply Development and Enhance User Experience

Integrating AI Assistants into Shiny Apps: Simply Development and Enhance User Experience

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/

29.10.2024 17:55 โ€” ๐Ÿ‘ 6    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@jameshwade is following 20 prominent accounts