setFixest_nthreads | R Documentation |
fixest
functionsSets/gets the default number of threads to used in fixest
estimation functions. The default is the maximum number of threads minus two.
setFixest_nthreads(nthreads, save = FALSE)
getFixest_nthreads()
nthreads |
The number of threads. Can be: a) an integer lower than, or equal to, the maximum number of threads; b) 0: meaning all available threads will be used; c) a number strictly between 0 and 1 which represents the fraction of all threads to use. If missing, the default is to use 50% of all threads. |
save |
Either a logical or equal to |
Laurent Berge
# Gets the current number of threads
(nthreads_origin = getFixest_nthreads())
# To set multi-threading off:
setFixest_nthreads(1)
# To set it back to default at startup:
setFixest_nthreads()
# And back to the original value
setFixest_nthreads(nthreads_origin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.