inputs <- list(arg1 = "a", arg2 = "b")
# splice() concatenates the elements of inputs with arg3
str(splice(inputs, arg3 = c("c1", "c2")))
str(list(inputs, arg3 = c("c1", "c2")))
str(c(inputs, arg3 = c("c1", "c2")))
Run the code above in your browser using DataLab