yihui / xfun

Miscellaneous R functions
https://yihui.org/xfun/
Other
135 stars 28 forks source link

Fix for `is_arm64()` function to support Linux #74

Closed eitsupi closed 1 year ago

eitsupi commented 1 year ago

I recommend supporting Linux as well, because when we simply write arm64, it is not limited to macOS.

I tested R on Docker on Raspberry Pi 4.

$ docker run --rm -it r-base R -s -e 'Sys.info()[["machine"]]'
[1] "aarch64"
$ uname -m
aarch64
$ dpkg --print-architecture
arm64