Skip to contents

Error when permutation values are invalid (not a valid permutation of indices)

Usage

error_permute_index(
  arg,
  permutation,
  expected,
  call = sys.call(-1)[1L],
  class = character(),
  signal = TRUE
)

Arguments

arg

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

permutation

(integer())
The permutation values that are invalid.

expected

(integer())
The expected indices to be permuted.

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)