Posts
Media
Videos
Starter Packs
Nan Xiao
@nanxstats.bsky.social
· May 12
pkgdown.offline: Build pkgdown websites without an internet connection
Introducing pkgdown.offline, an R package for building pkgdown websites entirely offline. Learn how it addresses recent pkgdown internet requirements, essential for CI/CD pipelines and air-gapped envi...
nanx.me
Nan Xiao
@nanxstats.bsky.social
· Apr 22
Customizing Inter with alternative optical sizing presets
Fine-tune the popular Inter typeface using optical sizing (opsz) and letter spacing. This post introduces a set of CSS presets to easily adjust its appearance for optimal readability in your web proje...
nanx.me
Nan Xiao
@nanxstats.bsky.social
· Mar 25
Optimize R foreach loops for parallelism: avoid the .combine argument
Learn why using .combine in R parallel foreach loops can harm performance. Benchmark comparisons show that manual aggregation methods like data.table::rbindlist() significantly accelerate execution.
nanx.me
Nan Xiao
@nanxstats.bsky.social
· Feb 10
Prevent RStudio 2024.12.0 from adding ProjectID to .Rproj files
RStudio 2024.12.0 unconditionally adds a ProjectID field to .Rproj files, causing unwanted Git diffs and potential editing conflicts. This post explains the issue and provides an R script to automatic...
nanx.me
Nan Xiao
@nanxstats.bsky.social
· Jan 6
Customize testthat snapshot directory with monkey patching
Learn how to customize the default snapshot directory in testthat using monkey patching in R. This post provides a practical solution for modifying testthat internals to meet your project's needs, wit...
nanx.me
Nan Xiao
@nanxstats.bsky.social
· Dec 6
tinyvdiff: Minimalist visual regression testing plugin for pytest
Introducing tinyvdiff, a minimalist pytest plugin for visual regression testing in Python. Designed for reproducible workflows, tinyvdiff converts PDFs into SVG snapshots for comparing appearance chan...
nanx.me