vector_to_R_code: Transform a vector into a string that evaluates to the same vector
Description
Collapses a vector into a comma-separated list with strings quoted
(and special characters escaped). A general purpose helper function
for writing new model code.