Skip to contents

Error when indices are not sorted in ascending order

Usage

error_indices_not_sorted(
  arg,
  indices,
  call = sys.call(-1)[1L],
  class = character(),
  signal = TRUE
)

Arguments

arg

(character(1))
Name of the argument that caused the error

indices

(integer())
The indices that are not sorted.

call

(call or NULL)
Call that generated the error

class

(character())
Additional classes to prepend

signal

(logical(1))
Whether to signal the error (default TRUE)