Want to build AI Bots with R? Combining the {ellmer} package with the Shiny framework might be exactly what you need. And I'm happy to share that I get to talk about how that works at this year's ShinyConf 🎉 If you want to join, you can still sign up at www.shinyconf.com/agenda #rstats
Dr. Albert Rapp
@albertrapp.bsky.social
Building data solutions at work, sharing R knowledge after hours.
Ever wanted to restrict your Quarto project to only a few select people? You can do so by 1️⃣ Hosting your project on Azure Static Web Apps 2️⃣ Creating your own user base via Azure's AAD B2C service 3️⃣ Configuring your app so that it only allows users from your user base #rstats (1/2)
The nice thing about hosting a Quarto project on Azure is that you can easily enable social logins via vendors like GitHub, Apple or Google. All you have to do is 1️⃣ Add an "auth" section to your config file 2️⃣ Get a client from the identity provider (e.g. Google) (1/3) #rstats #datascience
I used to think that securing a Quarto website is about writing lots of code. But really it only requires ✅ hosting on Azure static web apps, ✅ creating a JSON file inside of your Quarto project, and ✅ filling that file with values that you can look up in the docs. #rstats #datascience (1/2)
Hosting Quarto projects on Azure is an easy way to add user authentication to your project. That way, only selected users can access your web page. All you need for that is 🔹 a GitHub repo, 🔹 an Azure subscription, and 🔹 Azure's static web apps service.
It's fascinating how easy text analysis has become in recent years. Nowadays, text analysis reduces to 1️⃣ feeding a document/image to an OCR service like Textract, and 2️⃣ sticking the results into an LLM. No huge entry barriers for data scientists to dive into text processing. #rstats #datascience
New chapter for the "AI With R" book 🥳 We're getting started with the {ellmer} package. This package has lots of features like ✅ tool calling to mix AI with traditional functions, ✅ structured output to extract infos, and ✅ async streams to build chat bots. #rstats #AI #datascience
New Project: AI With R 🥳 I've been writing about how to use AI/LLMs with R. So I'm happy to share that I'm starting to collect all the materials in one central space. You can read the first two chapters at https://buff.ly/3PQNzWz #rstats #AI
Check out this AI chat-bot I built with #rstats using {elmer} and {shiny} 🥳 The crucial steps are 1️⃣ Insert textboxes with insertUI() 2️⃣ Stream LLM responses into the textboxes Want more details? Tomorrow, I show 3200+ readers how I built this thing. You can join us at 3mw.albert-rapp.de/subscribe
My solution to today's #adventofcode in #rstats. Took me a while to realize that I can get reverse diagonals by just using diag() on the matrix with column indices chosen descendingly 😅
#rstats/#python question: Why is it so hard for IDEs to find surrounding Py-code when I'm executing multiline code with Ctrl+Enter? In R or rather RStudio, multiline statements always get executed as a whole. I'm assuming this is a hard problem in Python but anyone knows why that's the case? 🤔
Glad to see that the #rstats community is sharing their #AdventOfCode solutions. Here's mine. For some reason it was a pain to get the regex for Part 2 right so I just brute-forced it (find indices between all don't and dos and then remove those chars) 🤣 btw is there an R leaderboard this year? 🤔
I'm writing up a brief history of the tidyverse? What do you want to know about it? #rstats
Look at this fantastic diamond chart 🤩 You can create such a beauty with ggplot using one simple trick: 1️ Use a regular grid and plot all texts at a 45 degree angle 2️⃣ Turn the whole chart counter-clockwise Pretty dope trick that I've learned from a tutorial on the F5 Newsletter. (1/2) #Rstats
Yes Quarto is fantastic. 🥳 More people should use it 🤗
I feel like not enough people know about Quarto for creating documents. How it works: Write in markdown and use Quarto to convert it to html, pdf, epub, ... I produce my books with Quarto (web + ebook + print version). But you can also use it for websites, reports, dashboards, ... quarto.org
I'd love to follow the base R vs tidyverse flame war but it seems like I've forgot how to read convoluted posts and comments since the Twitter days 🤔😂 #Rstats
Hi #RStats data friends 👋 Guess I'm doing this and joining the Bluesky data fun 🥳 I won't give up LinkedIn but I've been craving for dishing out more short-form R hacks. Hope to fill that void with Bluesky ✌️
My 3-minute newsletter is celebrating its 100th edition 🥳 Can't believe I've been doing this for ~2 years already 🤯 To celebrate, I'll share my best programming tips. If you're curious & want to join 3100+ readers, you can still sign-up at https://buff.ly/3PRzat5 #RStats