HenrikBengtsson / startup

:wrench: R package: startup - Friendly R Startup Configuration
https://henrikbengtsson.github.io/startup/
160 stars 5 forks source link

DOCS: How to identify different OSes and CPU types #101

Open HenrikBengtsson opened 2 years ago

HenrikBengtsson commented 2 years ago

Here are some example of startup::sysinfo()[c("os", "sysname", "machine")] on different hardware:

os sysname machine description
unix Darwin arm64 macOS on M1 chip
unix Linux x86_64 Linux, e.g. Ubuntu 18.04 and CentOS 7
windows Windows x86-64 MS Windows 10 on VirtualBox VM
windows Windows x86 R 32-bit on MS Windows 10 on VirtualBox VM
windows Windows x86-64 R on Linux Wine
windows Windows x86 R 32-bit on Linux Wine

This info can be used to create Renviron and Rprofile files that are processed on a specific platform, e.g. the startup package will process ~/.Rprofile.d/sysname=Darwin,machine=arm64/config.R only on a macOS machine with the M1 chip.

Help wanted

If you have access to something different, please consider sharing your info here. I'll then try to add it do the startup documentation, e.g. in the vignette, or in a separate vignette.