Your error is seeking for range, which provides you a vector's range, like in:
range (10, -5, 100), c,
Examine the: operator to provide sequences (with a step size of one) instead.
alternatively for a little bit more control, try the seq function. For instance,
## Step size of 2 Sequence (1, 100, by=2)