Check that the synapse ID in the manifest matches a pattern of syn
followed
by numbers.
check_parent_syn( manifest, success_msg = "All Synapse IDs in the manifest are valid", fail_msg = "Some Synapse IDs in the manifest are invalid" )
manifest | The manifest as a data frame or tibbl |
---|---|
success_msg | Message indicating the check succeeded. |
fail_msg | Message indicating the check failed. |
A condition object indicating whether the files are present in the
path
column of the manifest
manifest <- data.frame(parent = c("syn", "syn123"), stringsAsFactors = FALSE) check_parent_syn(manifest)#> <error/check_fail> #> Some Synapse IDs in the manifest are invalid