This methods allows you to retrieve the number of cores currently accessible to openMP
get.thread.count()
Nicolas De Jay, Simon Papillon-Cavanagh, Benjamin Haibe-Kains