Dr. Albert Rapp
banner
albertrapp.bsky.social
Dr. Albert Rapp
@albertrapp.bsky.social
Building data solutions at work, sharing R knowledge after hours.
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
March 17, 2025 at 3:00 PM
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)
March 11, 2025 at 4:00 PM
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
March 4, 2025 at 3:00 PM
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)
February 25, 2025 at 3:00 PM
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.
February 18, 2025 at 8:16 PM
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
February 11, 2025 at 2:15 PM
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
February 2, 2025 at 4:03 PM
With AI, it's really easy to process invoices or other documents using R. Here's what you have to do:

#rstats #AI
January 28, 2025 at 4:03 PM
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
January 27, 2025 at 4:05 PM
Reposted by Dr. Albert Rapp
Some P on WIP.

#ggplot2 #rstats
December 13, 2024 at 6:54 PM
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
December 10, 2024 at 7:26 PM
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 😅
December 4, 2024 at 6:53 PM
#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? 🤔
December 3, 2024 at 12:47 PM
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? 🤔
December 3, 2024 at 7:53 AM
Video editing becomes 2x more fun when you get to include your favorite dumb memes 😂 #Rstats
November 27, 2024 at 8:20 PM
Reposted by Dr. Albert Rapp
I'm writing up a brief history of the tidyverse? What do you want to know about it? #rstats
November 25, 2024 at 3:24 PM
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
November 25, 2024 at 3:40 PM
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
Quarto
An open source technical publishing system for creating beautiful articles, websites, blogs, books, slides, and more. Supports Python, R, Julia, and JavaScript.
quarto.org
November 24, 2024 at 3:02 PM
The only mistake that's worse than forgetting ns() is forgetting useShinyjs(). Gets me every time 🤦🏼‍♂️😅 #rstats #shiny
November 20, 2024 at 12:28 PM
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
November 19, 2024 at 5:51 PM
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 ✌️
November 19, 2024 at 3:15 PM
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
November 19, 2024 at 3:09 PM