Sign in

Dr. Albert Rapp

@albertrapp.bsky.social
691 followers 107 following 61 posts

Building data solutions at work, sharing R knowledge after hours.

PostsRepliesMedia
Dr. Albert Rapp @albertrapp.bsky.social · 17/03/2025
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
161
Dr. Albert Rapp @albertrapp.bsky.social · 11/03/2025
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)
261
Dr. Albert Rapp @albertrapp.bsky.social · 04/03/2025
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
150
Dr. Albert Rapp @albertrapp.bsky.social · 25/02/2025
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)
060
Dr. Albert Rapp @albertrapp.bsky.social · 18/02/2025
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.
1121
Dr. Albert Rapp @albertrapp.bsky.social · 11/02/2025
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
140
Dr. Albert Rapp @albertrapp.bsky.social · 02/02/2025
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
1144
Dr. Albert Rapp @albertrapp.bsky.social · 28/01/2025
But what if you have a PDF? In that case, you can use the pdf_convert() function from the {pdftools} package to make the PDF into an image. Then, you can use the previous steps. That's it. Not really much you have to do.
110
Dr. Albert Rapp @albertrapp.bsky.social · 28/01/2025
Let's imagine you have an image of an invoice. You can put that into one of {ellmer}'s content objects. Key function here is content_image_file()
100
Dr. Albert Rapp @albertrapp.bsky.social · 28/01/2025
With AI, it's really easy to process invoices or other documents using R. Here's what you have to do: #rstats #AI
1101
Dr. Albert Rapp @albertrapp.bsky.social · 27/01/2025
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 buff.ly/3PQNzWz #rstats #AI
1101
Dr. Albert Rapp @albertrapp.bsky.social · 10/12/2024
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
180
Dr. Albert Rapp @albertrapp.bsky.social · 04/12/2024
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 😅
070
Dr. Albert Rapp @albertrapp.bsky.social · 03/12/2024
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? 🤔
250
Dr. Albert Rapp @albertrapp.bsky.social · 27/11/2024
Video editing becomes 2x more fun when you get to include your favorite dumb memes 😂 #Rstats
040
Dr. Albert Rapp @albertrapp.bsky.social · 25/11/2024
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
160
Dr. Albert Rapp @albertrapp.bsky.social · 19/11/2024
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 buff.ly/3PRzat5 #RStats
061