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)

Bild

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

Bild

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)

Bild

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.

Bild

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

Bild

#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? 🤔

Bild

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

Bild