谢益辉

RSS: https://yihui.org/index.xml
谢益辉的个人网站,R Markdown、knitr 作者,统计学家。

该不该向社区要赞助?——一位R Markdown维护者的自白

谢益辉继续免费维护R Markdown生态,考虑是否向社区寻求赞助。GitHub五年赞助折合每年约20小时工作量,不足以覆盖维护需求。需逐个检查26,000多个CRAN包才能发布新版本。 开源开发者多数无偿工作,R Markdown重要性因Quarto崛起而下降。
评论点赞收藏22 小时前

knitr 2024-2026 版本更新回顾

R 报告工具 knitr 在三年间发布了 v1.46 至 v1.52 版本,新增 chunk 选项支持表格标题直接写在代码块头、spin 识别 VS Code/Jupyter 风格注释分隔符、PNG 图片自动压缩、OpenTelemetry 追踪支持,以及 Typst 文档输出。 Breaking changes 包括不平衡的代码块围栏变为错误、vignette 在 R CMD check 时不再跳过运行。fig.alt 选项现在区分空字符串和缺失属性,对无障碍访问更精确。
评论点赞收藏1 天前

rmarkdown 2024-2026 版本更新回顾

R Markdown 从 v2.26 到 v2.32 共七个版本更新,修复了多个长期存在的 bug。OneDrive 和 Google Drive 用户现在可以自定义文件后缀避免输出目录被删除;lib_dir 不再限制必须在 output_dir 内,共享库目录的问题得以解决;beamer_presentation 支持声明 LaTeX 依赖;PDF 渲染时临时文件不再会干扰并行进程。 rmarkdown 也改用 MIT 许可。
评论点赞收藏1 天前

lt包:R语言的轻量级HTML表格方案

R语言大神Yihui Xie发布lt包,旨在解决gt包依赖过重的问题。lt将表格渲染逻辑移至前端JS,R端仅生成JSON,实现极小依赖。支持悬停查看原始值等交互功能,且架构允许其他语言轻松接入。
评论点赞收藏62 天前

Converting testthat Tests to testit

Back in 2013, I wrote about testing R packages (/en/2013/09/testing-r-packages/) when I first released testit. Thirteen years later, I still believe that unit testing should be nothing more than “tell...
评论点赞收藏118 天前

再见,Stack Overflow

在Stack Overflow担任成员超过15年之后,我终于下定决心离开这里。 早在2017年和2018年,我就曾多次抱怨过这个平台。 而直到本月早些时候,类似的挫败感再次涌上心头——这一次,它成了压垮我的最后一根稻草。 我再也不会容忍这个网站了。 顺便一提,一位把问题关闭的“守门人”这样说道: “重新开启这个问题有什么意义?这样是不是能让那个bug得到更多修复呢?” 对此,我在该网站上留...
评论点赞收藏118 天前

Reflections on AI-assisted Programming

My former colleague Nan kept telling me early last year that I should try Cursor, but I felt I didn’t need AI assistance at that time, since I knew pretty well what I wanted to do and how. Plus, I’m g...
评论点赞收藏130 天前

Preliminary Support for Typst in knitr

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.typ...
评论点赞收藏136 天前

An Introduction to xfun

After writing about 20 R packages, I found I had accumulated several utility functions that I used[…]
评论点赞收藏149 天前

R.I.P., Tomas Kalibera

Update on 2026/04/20 Here is a tribute written by Professor Jan Vitek, which included much richer information about Tomas: I hate writing yet another RIP post, but the other day, I learned on Blues...
评论点赞收藏149 天前

The Surprising Slowness of `textConnection()` in R

Earlier this month, @idavydov filed an issue against Quarto reporting that it is about 100x slower than rmarkdown for documents with long output. The minimal reprex was striking: Running quarto rende...
评论点赞收藏165 天前

tinyimg: An R Package for Compressing Images

Last month, @bastistician opened an issue on the litedown repo pointing out that knitr has a hook_pngquant function for compressing PNG plots from code chunks, but litedown lacks such a feature. He in...
评论点赞收藏165 天前

A CDN-backed CTAN Mirror: `tlnet.yihui.org`

I set up a partial CTAN (Comprehensive TeX Archive Network) mirror this month at. This post explains why it exists, what’s in it, and how to use it. The short version: TinyTeX now uses it by default, ...
评论点赞收藏166 天前

登录芦苇

登录后关注作者、收藏内容和参与讨论。