Check the variable that specifies the number of threads being used by cpgen-functions
Returns the value of the global variable cpgen.threads
set_num_threads, get_max_threads, check_openmp
# set the number of threads to 1
# set number of threads to the value reported by get_max_threads()
n_threads <- get_max_threads()
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.