I am trying to parse a string to use as an argument. It throws the following error.
Error in parse: <text>:1:10: unexpected ','
This is the part of my code:
type <- input$info_type
arguments <- paste(type, collapse=", ")
tmp <- rbind(eval(parse(text=arguments)))
input$info_type
is an input from Selectize, and
I expect the code to work like this:
if: argument <- "data_1, data_2"
then, execute: rbind(data_1, data_2)