Advertisement · 728 × 90

Posts by Christoph Scheuch

I see rm(list = ls()) a lot in my role as a data editor, and I usually recommend removing it. I’ve never really understood the appeal, especially as someone who obsessively restarts sessions 🤷‍♂️

3 months ago 3 0 0 0

Indeed, Positron has such a restart button and I‘m a frequent user ✌️

3 months ago 1 0 1 0

I didn’t know that unknown functions are passed along, so I always used sql() - thank you for the reference!

5 months ago 1 0 0 0
dplyr code with duckdb functions in all caps

tbl_files <- tbl(db, "csvs") |>
  # CAPS for duckdb functions
  mutate(
    # $speaker has directory names with the patterns:
    # - `[speaker]-[listener]` (listener specific data)
    # - `[speaker]` (default version)
    # so compute appropriate $speaker, $listener values
    dir_parts = speaker |> STRING_SPLIT("-"),
    speaker = dir_parts |> LIST_FIRST(),
    listener = dir_parts |> LIST_LAST(),
    listener = ifelse(listener == speaker, "default", listener)
  ) |>
  select(speaker, listener, file, label, logprob, model_name, model_commit)

dplyr code with duckdb functions in all caps tbl_files <- tbl(db, "csvs") |> # CAPS for duckdb functions mutate( # $speaker has directory names with the patterns: # - `[speaker]-[listener]` (listener specific data) # - `[speaker]` (default version) # so compute appropriate $speaker, $listener values dir_parts = speaker |> STRING_SPLIT("-"), speaker = dir_parts |> LIST_FIRST(), listener = dir_parts |> LIST_LAST(), listener = ifelse(listener == speaker, "default", listener) ) |> select(speaker, listener, file, label, logprob, model_name, model_commit)

it never ceases to amaze me that I can refer to duckdb functions in R expressions as though they were R functions and everything gets translated to SQL

5 months ago 31 5 3 0

What kind of sorcery is this?! I love it 🙏

5 months ago 1 0 1 0

Last week I posted about using structured output in {ellmer} to turn text into data, but a friend pointed out that the LLM had mixed up the words "conscious" and "consciousness" in its summary.

So how can we fix that? 🧵(1/3)

#rstats #llms #ai

5 months ago 8 3 2 0
Preview
ellmer 0.4.0 ellmer 0.4.0 includes important lifecycle updates, new Claude features (caching, file uploads, web tools), OpenAI improvements, and enhancements to error handling, pricing tracking, and security.

ellmer 0.4.0 is out now! New features include Claude caching & file uploads, support for newer OpenAI responses API, web search tools, and better security. Read more at tidyverse.org/blog/2025/11... #rstats

5 months ago 40 11 0 0

- Ultimate R Bundle: 7 academic style courses taught by top instructors including Dr. Paul Sabin, @niccrane.bsky.social , and @christophscheuch.bsky.social and working professionals in sports and academia, including a preorder on our AI/LLM course releasing in 2026.

5 months ago 3 1 1 0
Advertisement

Fantastic news! So to add the llm.txt to my site, which is built, rendered and deployed via GitHub Actions, I just switch to the new version in the workflow or do I need to explicitly call build_llm_docs() after build_site_github_pages()?

5 months ago 0 0 1 0

And a Makefile to orchestrate the execution order of different reports and their potential dependencies ✌️

5 months ago 3 0 1 0
Preview
Announcing imfapi: User-Friendly Access to IMF Data in R New IMF API, new IMF API R library — part of the econdataverse initiative

New R package I developed as part of the `econdataverse` project for accessing macroeconomic data from the International Monetary Fund's IMF Data API was just published to CRAN. 🥳 Writeup here: open.substack.com/pub/modeling...

5 months ago 4 1 1 0

You can still publish to shinyapps.io from Positron using the rsconnect package

6 months ago 4 0 0 0
Screenshot of first page of slidecrafting-book.com website

Screenshot of first page of slidecrafting-book.com website

I'm exited to announce a new resource about making slides with quarto and revealjs. This book is the combination of all the work I have done in this area, reordered and polished up

There isn't a lot of new information yet, but this format allows me to add more easily

slidecrafting-book.com
#quarto

6 months ago 182 66 11 6
Preview
SynergiZing ML & LLMs in R — tidymodels, RAG, Shiny | Athlyticz Waitlist open for Athlyticz’s async R course: tidymodels + LLMs (RAG, tool-calling, evals) and Shiny/vetiver deployment—by Nic Crane & Christoph Scheuch.

We’re thrilled to have @niccrane.bsky.social and @christophscheuch.bsky.social join our team to co-develop our flagship async course, SynergiZing ML & LLMs in R.

We’ve also welcomed @albertrapp.bsky.social to lead our monthly membership track.

👉 Early access updates here: athlyticz.com/ai-signup

7 months ago 4 3 1 0
Preview
ggplot2 4.0.0 A new major version of ggplot2 has been released on CRAN. Find out what is new here.

I am beyond excited to announce that ggplot2 4.0.0 has just landed on CRAN.

It's not every day we have a new major #ggplot2 release but it is a fitting 18 year birthday present for the package.

Get an overview of the release in this blog post and be on the lookout for more in-depth posts #rstats

7 months ago 849 280 9 50
Advertisement

Another challenge is being obsessive about function names and consistency since in R we typically load everything into the same namespace. In Python, I’d probably take a different approach, since it’s more common to organize things into (sub-)modules.

7 months ago 1 0 0 0

Great idea for a post! The tricky part is that you often figure things out along the way (e.g. column / parameter names), which then forces changes in other packages (i.e. breaking changes / soft deprecations). A meta-package that loads the rest is easy to set up thanks to the tidyverse 🙏

7 months ago 1 0 1 0
Easily Load and Install the EconDataverse The EconDataverse is a universe of open-source packages to work seamlessly with economic data. This package is designed to make it easy to install and load multiple EconDataverse packages in a single step. Learn more about the EconDataverse at <https://www.econdataverse.org>.

Link to package docs: tidy-intelligence.github.io/r-econdatave...

7 months ago 2 0 0 0
Post image

Big milestone: {econdataverse} is now on CRAN #rstats. Install & load multiple #EconDataverse packages in one step, just like the {tidyverse} 🥹

7 months ago 9 2 1 0

Wasn’t it some Excel mess? Like hitting row limits and wrong references. Guess the first step would be a code-first approach 🫠

7 months ago 1 0 0 0
Preview
nanonext 1.7.0 nanonext is a communications and concurrency toolbox that facilitates fast, powerful and reliable data exchange in polyglot data science workflows.

tidyverse blog: Breaking down language barriers in data science

nanonext is a messaging and concurrency toolkit, connecting R to polyglot data science pipelines involving modules written in Python, Rust, Go and C++ etc.

www.tidyverse.org/blog/2025/09...

#RStats #tidyverse

7 months ago 32 7 1 0
Post image

Looking forward to my first pure #Python conference ever at PyData Berlin 🐍

If you are interested in getting to know Shinylive and WebAssembly in Python, feel free to join my talk tomorrow at noon titled „Building Reactive Data Apps with Shinylive and WebAssembly“ ✌️

7 months ago 1 0 0 0
Advertisement
Analyzing Census Data with Data Commons

The first vignette offers a detailed look at what’s possible with {datacommons} in #rstats: tidy-intelligence.github.io/r-datacommon...

7 months ago 2 0 0 0
Preview
GitHub - tidy-intelligence/r-datacommons: Client for the Google Data Commons API V2 Client for the Google Data Commons API V2. Contribute to tidy-intelligence/r-datacommons development by creating an account on GitHub.

Another new CRAN release with @tealemery.bsky.social 💪 {datacommons} is a wrapper for the Google Data Commons API v2, which provides unified access to global public stats in a knowledge graph, thus reducing data-wrangling pain.
Feedback as always very welcome 🙏
github.com/tidy-intelli...

7 months ago 10 0 1 0

Working hard at more R packages 😅

7 months ago 1 0 1 0
Preview
GitHub - Teal-Insights/r-imfweo: Seamless Access to IMF World Economic Outlook (WEO) Data Seamless Access to IMF World Economic Outlook (WEO) Data - Teal-Insights/r-imfweo

New #RStats package on CRAN: {imfweo} (w/ @tealemery.bsky.social) gives easy access to IMF’s World Economic Outlook. It's part of the #EconDataverse, helping economists + financial professionals work with sovereign-level data. Feedback welcome ✌️

github.com/Teal-Insight...

7 months ago 7 2 1 0
Preview
CRAN: Package imfweo Provides tools to download, process, and analyze data from the International Monetary Fund's World Economic Outlook (WEO) database &lt;<a href="https://www.imf.org/en/Publications/SPROLLs/world-economic-outlook-databases" target="_top">https://www.imf.org/en/Publications/SPROLLs/world-economic-outlook-databases</a>&gt;. Functions support downloading complete WEO releases, accessing specific economic indicators for selected countries, and listing available data.

New CRAN package imfweo with initial version 0.1.0
#rstats
https://cran.r-project.org/package=imfweo

7 months ago 1 1 0 0
Video

Happy to announce ✨quarto-revealjs-editable✨

This fully supersedes the imagemover extension, as I back then didn't realize the potential. You can now also move, resize, change font size and alignment for text in your slides

github.com/EmilHvitfeld...
#quarto #slidecrafting

8 months ago 116 36 10 8
An arrow with a LaTeX equation

An arrow with a LaTeX equation

Trigonometric functions and a unit circle

Trigonometric functions and a unit circle

A bivariate change model with structured residuals

A bivariate change model with structured residuals

A hierarchical model of cognitive abilities

A hierarchical model of cognitive abilities

Now on CRAN, ggdiagram is a #ggplot2 extension that draws diagrams programmatically in #Rstats. Allows for precise control in how objects, labels, and equations are placed in relation to each other.
wjschne.github.io/ggdiagram/ar...

8 months ago 180 73 10 9
Advertisement