util_get_mac_arch: Report the macOS architecture

View source: R/download_netlogo.R

util_get_mac_archR Documentation

Report the macOS architecture

Description

Reports which macOS architecture a NetLogo disk image should be downloaded for

Usage

util_get_mac_arch()

Details

Under Rosetta, R reports x86_64 even on Apple Silicon, so the hardware is asked directly via sysctl hw.optional.arm64 in that case. Pass arch to download_netlogo to override the result, for example to fetch an image for a different machine.

Value

"aarch64" on Apple Silicon, "x86_64" otherwise


nlrx documentation built on Nov. 25, 2026, 5:09 p.m.