I'm trying to run an R script from the command line. Everything works except part of the code takes in a character vector, which I pass into the R script as a command line prompt.

Example:
Command line Arg: "A,B,C,D,E"

needs to be converted to:

c("A", "B", "C", "D", "E")

How can I do this?

Thanks!