I spent a lot of time by searching a solution for that, in particular in this answer Use character string as function argument
Anyway I haven't found a solution.
I would use a string of character as it was my input in the console.
In particular, I can create vector v1 in this way
v1 <- c(1, 3, 5:10)
[v1] 1 3 5 6 7 8 9 10
I would like to find a way to do this by saving this code 1, 3, 5:10
as an object and than using it as it was my input
values <- ("1, 3, 5:10")
v1 <- c(read.as.input(values))
Any tips? Thanks