Create multiple rests efficiently with a simple wrapper around rep using the times argument.

rest(x, n = 1)

Arguments

x

integer, duration.

n

integer, number of repetitions.

Value

a character string.

Examples

rest(c(1, 8), c(1, 4))
#> [1] "r1 r8 r8 r8 r8"