Session Ready
Exercise

How many cores does this machine have?

The parallel package has a function detectCores() that determines the number of cores in a machine.

How many cores does this machine have?

Instructions
100 XP
  • Load the parallel package.
  • Using the detectCores() function, store the number of cores in an object called no_of_cores.
  • Print no_of_cores.