More and more functions and packages use ‘threads’ parameter which helps to control computational resource of the computer. You can adjust how many cores you want to use for the computation. In that case, you don’t know how many cores are in your computer R gives a simple solution.

Number of cores

The function below determines how many cores are in your computer. This function gives a number.

## [1] 4

Be happyR! 🙂