Assert that a given object is a batchtools registry.
Additionally can sync the registry, check if it is writeable, or check if jobs are running.
If any check fails, throws an error indicting the reason for the failure.
Arguments
- reg
[
Registry]
The object asserted to be aRegistry.- class
[
character(1)]
IfNULL(default),regmust only inherit from class “Registry”. Otherwise check thatregis of classclass. E.g., if set to “Registry”, aExperimentRegistrywould not pass.- writeable
[
logical(1)]
Check if the registry is writeable.- sync
[
logical(1)]
Try to synchronize the registry by including pending results from the file system. SeesyncRegistry.- running.ok
[
logical(1)]
IfFALSEthrow an error if jobs associated with the registry are currently running.