Code
NULL
Returns "darwin" for macOS, NULL for other platforms (Linux/Windows).
darwin_variant()
This is a specialized variant function for cases where only macOS produces different results while Linux and Windows are identical. Use this instead of system_os() when:
macOS produces unique output (e.g., platform-specific math libraries)
Linux and Windows produce identical results
You want to maintain a single snapshot for Linux/Windows
Common use cases:
JAGS MCMC output (macOS uses different floating-point arithmetic)
Platform-specific numerical computations
"darwin" on macOS, NULL on other platforms
NULL