Emil Hvitfeldt's Avatar

Emil Hvitfeldt

@emilhvitfeldt

https://emilhvitfeldt.com/ making modeling easier in #rstats with tidymodels at @posit.co writing about feature engineering (https://feaz-book.com/) and Slidecrafting. He/Him

5,278
Followers
923
Following
410
Posts
18.09.2023
Joined
Posts Following

Latest posts by Emil Hvitfeldt @emilhvitfeldt

Yes I am

06.03.2026 21:21 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

i could technically also try to run the code, however I didn't see a need give it that idea. The results I have been seen are good enough

06.03.2026 18:59 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

it can find them from the file name and fig-label

06.03.2026 18:50 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

thank you! you will still need to manually edit them, but is is definitely helpful

06.03.2026 18:21 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Adding alt text to figures in quarto with Claude Code Alt text is a very important thing to make sure you do right when making websites. Using AI agents such as Claude Code can help with a lot of the heavy lifting.

Wrote a new blogpost on how to use Claude Code to help generate alt text in quarto projects.

alt text is very valuable and should always be a priority, AI agents help you get 90% of the way there!
emilhvitfeldt.com/post/claude-...
#quarto

06.03.2026 17:14 ๐Ÿ‘ 18 ๐Ÿ” 5 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
A digital CAPTCHA verification window titled "Select all squares with PIPES" against a plain white background. The window contains a 3ร—3 grid of numbered squares, mixing literal hardware, smoking pipes, and programming syntax.

A digital CAPTCHA verification window titled "Select all squares with PIPES" against a plain white background. The window contains a 3ร—3 grid of numbered squares, mixing literal hardware, smoking pipes, and programming syntax.

These captchas just keep getting harder #rstats

05.03.2026 15:58 ๐Ÿ‘ 598 ๐Ÿ” 136 ๐Ÿ’ฌ 8 ๐Ÿ“Œ 2

choosing a starter also changes something else (your rivals pokemon) but your choice of fossil only changes you. I think, haven't played kanto in a while

05.03.2026 00:06 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
GitHub - rstudio/hex-stickers: RStudio hex stickers RStudio hex stickers. Contribute to rstudio/hex-stickers development by creating an account on GitHub.

We have been using stickerApp lately github.com/rstudio/hex-...

02.03.2026 20:05 ๐Ÿ‘ 9 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

hi ๐Ÿ‘‹ we always appreciate and read feedback! we would love if some of these problems could be raised as issues in their respective repositories. Wanna say {infer} and {tune}?

27.02.2026 19:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I'm personally not a big fan of R6 for user-facing code. But I agree with the overarching point. Many R package design decisions are based on what object systems are in place

27.02.2026 18:52 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

The newest version of quarto revealjs roughnotation extension now integrated with Quarto Wizard for amazing autocomplete thanks to @mickael.canouil.fr

github.com/EmilHvitfeld...

26.02.2026 18:04 ๐Ÿ‘ 6 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Claude Code: Setting up ast-grep with R support If you are using a coding agent such as Claude Code, then you can get so much out of it by using CLI tools.

I have found that one big way of improving how coding agents like Claude Code works is by giving it access to tools it can use well. ast-grep is one such tool.

In this blog post I show how you can set up ast-grep to work with R

emilhvitfeldt.com/post/ast-gre...

26.02.2026 17:03 ๐Ÿ‘ 15 ๐Ÿ” 1 ๐Ÿ’ฌ 4 ๐Ÿ“Œ 0

Can't wait to hang out!

25.02.2026 22:39 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
2. Install the diagram extension in a Quarto project. Create a new Quarto project. From the terminal, run this to install the diagram extension:

quarto install extension pandoc-ext/diagram

3. Tell your document to use the extension. Add this to the YAML header of a Quarto document:

filters:
  - diagram

4. Add a .tikz block to your document. Add a tikz code block to your document like this:

```{.tikz}
\begin{tikzpicture}[>={stealth}]
  \node (x) at (0,0) {$X_{t}$};
  \node (y) at (2,0) {$Y_{t + 1}$};
  \node (z) at (1,1) {$Z$};
  \path[->] (z) edge (x);
  \path[->] (z) edge (y);
  \path[->] (x) edge (y);
\end{tikzpicture}
```

5. Render! Render the document to PDF and you should see a diagram. Render it to HTML or .docx or Typst and it should use inkscape to convert it to SVG. Magic.

2. Install the diagram extension in a Quarto project. Create a new Quarto project. From the terminal, run this to install the diagram extension: quarto install extension pandoc-ext/diagram 3. Tell your document to use the extension. Add this to the YAML header of a Quarto document: filters: - diagram 4. Add a .tikz block to your document. Add a tikz code block to your document like this: ```{.tikz} \begin{tikzpicture}[>={stealth}] \node (x) at (0,0) {$X_{t}$}; \node (y) at (2,0) {$Y_{t + 1}$}; \node (z) at (1,1) {$Z$}; \path[->] (z) edge (x); \path[->] (z) edge (y); \path[->] (x) edge (y); \end{tikzpicture} ``` 5. Render! Render the document to PDF and you should see a diagram. Render it to HTML or .docx or Typst and it should use inkscape to convert it to SVG. Magic.

New blog post! After years of annoying shenanigans, I discovered that nowadays it's *really* straightforward to get tikz diagrams in #QuartoPub to automatically turn into SVGs in HTML, docx, and Typst! Install Inkscape, install a Quarto extension, and you're done. www.andrewheiss.com/blog/2026/02...

25.02.2026 15:25 ๐Ÿ‘ 94 ๐Ÿ” 15 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 3

#rstats 4.5.3 "Reassured Reassurer" scheduled for March 11. Full schedule on developer.r-project.org (or the svn if you're impatient.) This should be the wrap-up release for the 4.5 series.

23.02.2026 14:12 ๐Ÿ‘ 28 ๐Ÿ” 17 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

You're doing awesome work and we want to hear your stories! Submit a talk for posit::conf(2026) - Today is the last call for talks!

20.02.2026 18:52 ๐Ÿ‘ 8 ๐Ÿ” 4 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Shiki Magic Move Demo

one day I will get magic move to work in quarto! i have failed many times, but one day it will happen

shiki-magic-move.netlify.app

19.02.2026 22:42 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Calling all #quarto users!
If you are making some slides, what has caused you to reach for powerpoint/keynote/google slides instead of making them with quarto?

19.02.2026 19:38 ๐Ÿ‘ 11 ๐Ÿ” 4 ๐Ÿ’ฌ 15 ๐Ÿ“Œ 0

Worse idea Thursday: Zoom plugin that detects when you're about to sneeze/cough and auto-unmutes you for 3s.

19.02.2026 16:33 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
GitHub - dickoa/samplyr: A Tidy Grammar for Survey Sampling A Tidy Grammar for Survey Sampling. Contribute to dickoa/samplyr development by creating an account on GitHub.

I love R for everything statistics, but I've always been a little jealous of statisticians using SPSS Complex Samples or SAS SURVEYSELECT to design their samples.

So I decided to build samplyr, a tidy and pipe-friendly grammar for survey sampling design in #rstats.

dickoa.gitlab.io/samplyr/inde...

18.02.2026 14:47 ๐Ÿ‘ 109 ๐Ÿ” 23 ๐Ÿ’ฌ 5 ๐Ÿ“Œ 3

we need a really good title: โ€œSo He Says He Works in AIโ€ฆโ€

17.02.2026 23:11 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I will die if someone leaks the horrid typos I send to AI models

17.02.2026 22:53 ๐Ÿ‘ 11 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

depends on which one you are referring to, feaz is going pretty good right now

17.02.2026 18:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

Surprise I wrote another quarto revealjs extension. Now giving you more fragments to use!

Easy to use fragments with conventional syntax. Works on headers, whole slides and on a letter-by-letter basis

github.com/EmilHvitfeld...
#quarto

17.02.2026 18:03 ๐Ÿ‘ 18 ๐Ÿ” 4 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

I whipped up a little VS Code / Positron extension with a couple of helpers. "quarto-helpers" can be installed from the marketplace, Includes but is not limited to:

- Sass variable completion
- Fragment Autocomplete
- Absolute Position Autocomplete

github.com/EmilHvitfeld...
#quarto #positron

17.02.2026 17:38 ๐Ÿ‘ 7 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Roses are red,
violets are blue,
I should stop writing T
and just spell out TRUE

#RStats

14.02.2026 12:56 ๐Ÿ‘ 46 ๐Ÿ” 5 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
Post image

Registration is LIVE for posit::conf(2026)!
Join us in Houston or virtually from Sept 14โ€“16 for workshops, 100+ talks, & a whole lot of data science.
โœจ Super Early Bird: Save on in-person tickets until April 10
โœจ Virtual Pass: $99 for a virtual day+livestreams
Secure your spot: pos.it/conf

12.02.2026 21:27 ๐Ÿ‘ 5 ๐Ÿ” 2 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

"nobody is talking about" and "no one is telling you" are always followed by the least interesting insights

10.02.2026 15:41 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I'm not surprised about this one bit. But why wasn't it advertised as remote controlled taxis to begin with?

06.02.2026 17:20 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I will! I have something new to show too ๐Ÿ˜€

05.02.2026 20:29 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0