Learn R Programming

benchmarkme (version 1.0.8)

get_cpu: CPU Description

Description

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.

Usage

get_cpu()

Arguments

Examples

Run this code
# NOT RUN {
## Return the machine CPU
get_cpu()
# }

Run the code above in your browser using DataLab