Check that all indices are within a valid range.
cifti.validate.index.range(indices, max_index, what, filepath = "")NULL, invisibly. Stops with a descriptive error if an index is out
of range.
integer vector, the indices to check.
integer, the largest allowed index.
character string, a description of what the indices are, used in the error message.
character string, the file path, used in error messages.