fun0 <- function(x, y, z) vetr(x = matrix(integer(), ncol = 3), 
    y = integer(2L), z = logical(1L))

For argument `x`, `1` should be "matrix" (is "numeric")

Error in fun0(x = 1, y = 2, z = 3) : 
  For argument `x`, `1` should be "matrix" (is "numeric")

For argument `x`, `matrix(1)` should have 3 columns (has 1)

Error in fun0(x = matrix(1), y = 2, z = 3) : 
  For argument `x`, `matrix(1)` should have 3 columns (has 1)

For argument `y`, `length(2)` should be 2 (is 1)

Error in fun0(x = matrix(1:3, nrow = 1), y = 2, z = 3) : 
  For argument `y`, `length(2)` should be 2 (is 1)

For argument `z`, `3` should be type "logical" (is "double")

Error in fun0(x = matrix(1:3, nrow = 1), y = 2:3, z = 3) : 
  For argument `z`, `3` should be type "logical" (is "double")

Error in fun0(x = matrix(1:3, nrow = 1), y = c(2, 3), z = 3) : 
  For argument `z`, `3` should be type "logical" (is "double")

fun0(matrix(1:3, nrow = 1), c(2, 3), TRUE)

fun1 <- function(x, y, z) vetr(x = matrix(integer(), ncol = 3) || 
    integer(3L), y = integer(2L) || NULL || logical(1L), z = logical(1L))

For argument `y`, `"fail"` should be `NULL`, type "integer-like", or type "logical" (is "character")

Error in fun1(x = 1:3, y = "fail", z = "fail") : 
  For argument `y`, `"fail"` should be `NULL`, type "integer-like", or type "logical" (is "character")

fun1(matrix(1:9, ncol = 3), "fail", "fail")

Error in fun1(x = matrix(1:9, ncol = 3), y = "fail", z = "fail") : 
  For argument `y`, `"fail"` should be `NULL`, type "integer-like", or type "logical" (is "character")

For argument `x`, `letters[1:3]` should be "matrix", or type "integer-like" (is "character")

Error in fun1(x = letters[1:3], y = "fail", z = "fail") : 
  For argument `x`, `letters[1:3]` should be "matrix", or type "integer-like" (is "character")

For argument `z`, `"fail"` should be type "logical" (is "character")

Error in fun1(x = 1:3, y = 1:2, z = "fail") : 
  For argument `z`, `"fail"` should be type "logical" (is "character")

Error in fun1(x = 1:3, y = NULL, z = "fail") : 
  For argument `z`, `"fail"` should be type "logical" (is "character")