Sign in

Yihui Xie

@yihui.org
1.2K followers 20 following 91 posts

yihui.org

PostsRepliesMedia
Yihui Xie @yihui.org · 21/09/2026
After a massive cleanup of knitr issues/PRs in the past few days, I can finally stop being jealousy of Will Landau for his zero open Github issues in {targets}: yihui.org/en/2026/09/k... For the record, he has one open issue at the moment and so do I (debating with myself whether I should close it).
yihui.org
A Four-Day knitr Issue/PR Backlog Sprint - Yihui Xie | 谢益辉
After knitr v1.52 went to CRAN on 2026-09-06, I did something I don’t do often but have been hoping to do: I sat down and worked through the GitHub issue tracker more or less top to bottom. Over...
2252
Yihui Xie @yihui.org · 11/09/2026
working on R Markdown and knitr in 2026... - yihui.org/en/2026/09/r... - yihui.org/en/2026/09/k...
yihui.org
A Review of **rmarkdown** Updates from 2024 to 2026 - Yihui Xie | 谢益辉
Back in 2022, I promised that R Markdown wouldn’t die. In this post, I’ll give a summary of notable updates in rmarkdown v2.26–v2.32 (2024–2026). For the full changelog, please...
2308
Yihui Xie @yihui.org · 21/08/2026
I just came back from summer vacation, and would like to announce a tiny new R package I developed recently: {lt} yihui.org/en/2026/07/l...
yihui.org
The lt Package: Lightweight HTML Tables for R (and Beyond) - Yihui Xie | 谢益辉
Recently I have released a new package on CRAN: lt, short for lightweight tables (or less than). Its origin story is a small moment of shock. About two years ago a project required gt, so I ran &helli...
48023
Yihui Xie @yihui.org · 21/08/2026
Please help support Tomáš’s widow and young son. I was worried about them when I heard the sad news back in April, and I really appreciate that the R Foundation has set up this fund to help the family.
043
Yihui Xie @yihui.org · 21/05/2026
I just discovered TeX Live dropped support for Solaris from the automatic PR github.com/rstudio/tiny... today; with indescribable joy and uncertainty, I went to texlive-source repo and indeed I was not dreaming: github.com/TeX-Live/tex... as if they heard me in my post: yihui.org/en/2026/03/t...
github.com
remove (oracle) solaris binaries and builds · TeX-Live/texlive-source@0cdf2d8
git-svn-id: svn://tug.org/texlive/trunk/Build/source@78957 c570f23f-e606-0410-a88d-b1316a301751
071
Yihui Xie @yihui.org · 18/05/2026
I've used testit quietly for testing R packages for ~13 years until John Blischak offered a few usability suggestions recently, which made me believe this tiny package is worth a v1.0 release. If you appreciate minimalism like me, you may enjoy life minus 22 dependencies: yihui.org/en/2026/05/t...
yihui.org
Converting testthat Tests to testit - Yihui Xie | 谢益辉
Back in 2013, I wrote about testing R packages when I first released testit. Thirteen years later, I still believe that unit testing should be nothing more than “tell me if something unexpected …
072
Yihui Xie @yihui.org · 09/05/2026
I don't know why I just realized what the refresh button on r-universe.dev means and clicked it for the first time. I had wished for this for years, and it may have existed for years but I just didn't know it was triggering new builds! One of many reasons @jeroenooms.bsky.social is our hero ninja!
Check for package updates on r-universe
2251
Yihui Xie @yihui.org · 05/05/2026
Oh, S, John Chambers, and Rick Becker... When I did internship at AT&T Labs in 2012, Rick's office was next to mine. It was fun talking to him from time to time and showing him my new toy for interactive graphics (cranvas). Happy birthday, S! Thanks to these pioneers!
1221
Yihui Xie @yihui.org · 30/04/2026
I didn't know until today that curl.exe has been available on Windows for 8 years. Sigh. How much of my life has been wasted in fighting with those stupid download methods in .bat and power(???)shell scripts over these years! Anyway, TinyTeX users on Windows can enjoy a faster installation now.
1261
Yihui Xie @yihui.org · 28/04/2026
A new document format .Rtyp in knitr for Typst output: yihui.org/en/2026/04/k... (I also wrote down my thoughts on Typst since people keep asking me; I stand firmly on the HTML path but I'll be happy to continue supporting Typst and LaTeX, even though I don't use them myself)
yihui.org
Preliminary Support for Typst in knitr - Yihui Xie | 谢益辉
A few weeks ago I added preliminary support for Typst to knitr. The way it works is simple: if your file has the extension .Rtyp, knitr will recognize it as a Typst document, knit it, and produce a &h...
0111
Yihui Xie @yihui.org · 26/04/2026
All CRAN source packages (22749 tarballs as of today) contain 5.8Gb PNG images in total. Lossless compression via tinyimg::tinyping() can save 1.9Gb (32.0% savings), and lossy compression without noticeable differences can save 2.8Gb (48.2%): pkg.yihui.org/tinyimg/exam... (plot on the page is slow)
pkg.yihui.org
PNG Savings in CRAN Packages
3386
Yihui Xie @yihui.org · 24/04/2026
Out of curiosity, I wondered how much we can reduce the size of all PNGs in all CRAN packages via tinyimg. Interestingly, I ran out of memory (on GHA) in one package and it turned out it has a 12Mb hex sticker: github.com/cran/estar/b... 12M is more than enough for 2 base Alpine Linux Docker images!
github.com
1141
Yihui Xie @yihui.org · 20/04/2026
I find it interesting and a little surprising that (occasionally) people still use github.com/yihui/latex-... to figure out missing LaTeX packages: yihui.org/en/2021/06/l... Obviously TinyTeX still hasn't won the world, which sounds like a major bug that I'm unable to fix. github.com/rstudio/tiny...
github.com
GitHub - yihui/latex-pass: Help you pass the LaTeX compilation by telling you which LaTeX packages are missing to compile your documents
Help you pass the LaTeX compilation by telling you which LaTeX packages are missing to compile your documents - yihui/latex-pass
1102
Yihui Xie @yihui.org · 20/04/2026
12 years ago I created crandalf at github.com/yihui/crandalf to check reverse dependencies of R packages on Travis CI and switched to GHA later. If your pkg has < 400 revdeps, you can do a simple edit in a .yaml file and submit a PR to let GHA do the hard work. More info: yihui.org/en/2021/06/c...
github.com
GitHub - yihui/crandalf: Check all reverse dependencies of your R package with Github Actions
Check all reverse dependencies of your R package with Github Actions - yihui/crandalf
0121
Yihui Xie @yihui.org · 15/04/2026
In case you aren't aware, TinyTeX has started offering binaries for ARM and musl-based Linux since last month: yihui.org/en/2026/03/t... Enjoy the extra 5 minutes saved! BTW, I didn't know musl/Alpine Linux before. While working on TinyTeX binary for it, I was intrigued and also quite impressed.
yihui.org
Announcing TinyTeX Binaries for arm64 and musl-based Linux - Yihui Xie | 谢益辉
Three years ago, Cole Arendt requested pre-built TinyTeX binaries for ARM Linux. Today, I&rsquo;m happy to announce that we now provide pre-built TinyTeX binaries for arm64 and musl-based Linux (e.g. ...
072
Yihui Xie @yihui.org · 15/04/2026
If you install TinyTeX via tinytex::install_tinytex(), please make sure you are using the latest CRAN version of tinytex (>= v0.59): github.com/rstudio/tiny... Older versions will point to an outdated download link and fail the installation. 1/2
github.com
Docker CI/CD requests wrong URL while installing TinyTeX · Issue #497 · rstudio/tinytex
I have a CI/CD workflow that installs tinytex in a Docker-Container like this: FROM rocker/r-ver:4.4.0 RUN install2.r --error tinytex && \ R -q -e "tinytex::install_tinytex(); tinytex::reinstall_ti...
112
Yihui Xie @yihui.org · 15/04/2026
My first experiment with using Rust in an R package: github.com/yihui/tinyimg Blog post: yihui.org/en/2026/03/t... I failed to figure out an ideal universal threshold for the color difference for lossy PNG optimization. If anyone has expertise on this, I'll truly appreciate your help!
github.com
GitHub - yihui/tinyimg: An R package for optimizing and compressing images
An R package for optimizing and compressing images - yihui/tinyimg
2152
Yihui Xie @yihui.org · 14/04/2026
So sad... I can't imagine what this meant for his family. It hurts so much when I think of his 1 year old son... I just wrote down a few memories about Tomas in a blog post: yihui.org/en/2026/04/t...
yihui.org
R.I.P., Tomas Kalibera - Yihui Xie | 谢益辉
I hate writing yet another RIP post, but the other day, I learned on Bluesky that Tomas Kalibera had passed away. I don&rsquo;t really know Tomas well, and have never met him in person, but I just to ...
1180
Yihui Xie @yihui.org · 14/04/2026
Sometimes I feel I must be crazy to spend a whole day trying to come up with a proper solution to save only 400Kb for users. Storage is cheap, bandwidth is fast, my time is precious, and does anyone (besides my insane self) care about this 400Kb at all?
5282
Yihui Xie @yihui.org · 13/04/2026
`grepl('^[A-Z]', commit_message)` is a simple indicator on whether the work was done by me or AI. If a git commit message starts with a lowercase letter, you can know for sure the work was done by my own fingers because I'm often too lazy/tired to press Shift when writing a commit message.
0223
Yihui Xie @yihui.org · 10/04/2026
Naming used to be hard because it was just hard to come up with good names (expressive, memorable, etc). Now I think naming is hard mostly because good names have been exhausted. I feel so hard to find a verb or noun for a func name that hasn't been used in base R or any moderately popular R package
2261
Yihui Xie @yihui.org · 26/01/2026
Sorry I'm a few years late to the party, but I'm here finally! :) yihui.org/en/2026/01/h... Thank you all so much for your generous support over the past two years!
6989