library(xfun)
# only one of the following statements should be true
is_windows()
is_unix() && is_macos()
is_linux()
# In newer Macs, CPU can be either Intel or Apple
is_arm64() # TRUE on Apple silicone machines
Run the code above in your browser using DataLab