This function can be called from the shell. To specify an argument, use the
format --test-<arg_name>=<value>. For example, --test-timeout=600 will
set argument timeout=600, and --tags=lazy,rng, or equivalently,
--tags=lazy --tags=rng will set argument tags=c("lazy", "rng").
Here are some examples on how to call this function from the command line:
Rscript -e future.tests::check --args --test-plan=sequential
Rscript -e future.tests::check --args --test-plan=multicore,workers=2
Rscript -e future.tests::check --args --test-plan=sequential --test-plan=multicore,workers=2
The exit code will be 0 if all tests passed, otherwise 1. You
can use for instance exit_code=$? to retrieve the exit code of the
most recent call.