Get darwin snapshot variant for macOS

Description

Returns "darwin" for macOS, NULL for other platforms (Linux/Windows).

Usage

darwin_variant()

Details

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

Value

"darwin" on macOS, NULL on other platforms

Examples