(err, output) := capture str
This function evaluates the given Macaulay2 code within the same process in order to speed up tasks such as generating example results or checking the package tests.
|
|
If UserMode => false given, the dictionaries available to the user will not be affected by the evaluation and collectGarbage is called afterwards.
Errors occurred while evaluating str do not cause an error outside of capture.
|
|
Certain examples or tests might not be compatible with capture. In such cases, use the string -* no-capture-flag *-
somewhere within str so that the code is run in a separate Macaulay2 subprocess instead.
The object capture is a method function with options.