Learn R Programming

RcppProgress (version 0.2.1)

test_multithreaded: Test/example of using RcppProgress in multithreaded code

Description

Test function for the package rngOpenMP in a multithreaded mode.

Usage

test_multithreaded(max=100, nb=1000, threads=0, display_progress=TRUE)

Arguments

max
number of long computation jobs to perform
nb
number of interruptible steps a long computaton job is made of
threads
number of threads to use, or 0 to use the default OpenMP number, that is usually the number of cores
display_progress
whether to display the progress bar or not

Value

  • None

Details

Will perform max long jobs made of nb interruptible steps. The jobs are parallelized. The computation can be interrupted by the user.