Attempt to extract the CPU model on the current host. This is OS specific:

  • Linux: /proc/cpuinfo

  • Apple: sysctl -n

  • Solaris: Not implemented.

  • Windows: wmic cpu

A value of NA is return if it isn't possible to obtain the CPU.

get_cpu()

Examples

## Return the machine CPU
get_cpu()
#> $vendor_id
#> [1] "GenuineIntel"
#> 
#> $model_name
#> [1] "Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz"
#> 
#> $no_of_cores
#> [1] 3
#>