Convert a string of integers from input to array of integers in R : I have  string of integers from input text box ( in r shiny) like this :
input[["var1"]]
"1,2,3,4"
I want to convert it into a numeric vector like below:
values <- c(1,2,3,4)

Any help would be highly appreciated.

Thanks,
Ravijeet
