code: def _list2Rlist(xs):
      
      if isinstance(xs, six.string_types):
          xs = [xs]
      rlist = ",".join([_quotestring(x) for x in xs])
      return "c(" + rlist + ")"
docs: convert a python list to an R list