Other answers covered this better, but only for completeness, another way would be to build an expression that you want to evaluate using parse and use eval to evaluate it ....
# tag and values for list elements tag <- c('first.element', 'second.element') val <- c(1, 2) content <- paste( tag , "=" , val , collapse = " , " ) content
Simon O'Hanlon
source share