
`vec_rep()` validates `times`
=============================

> vec_rep(1, "x")
Error: Can't convert `times` <character> to <integer>.

> vec_rep(1, c(1, 2))
Error: `times` must be a single number.

> vec_rep(1, -1)
Error: `times` must be a positive number.

> vec_rep(1, NA_integer_)
Error: `times` can't be missing.


`vec_rep_each()` validates `times`
==================================

> vec_rep_each(1, "x")
Error: Can't convert `times` <character> to <integer>.

> vec_rep_each(1, -1)
Error: `times` must be a vector of positive numbers. Location 1 is negative.

> vec_rep_each(c(1, 2), c(1, -1))
Error: `times` must be a vector of positive numbers. Location 2 is negative.

> vec_rep_each(1, NA_integer_)
Error: `times` can't be missing. Location 1 is missing.

> vec_rep_each(c(1, 2), c(1, NA_integer_))
Error: `times` can't be missing. Location 2 is missing.


`vec_rep_each()` uses recyclying errors
=======================================

> vec_rep_each(1:2, 1:3)
Error: Can't recycle `times` (size 3) to size 2.

