def build_R_parameters(param):
    """Builds a R parameter string from a Python dictionary.
    """
    return ",".join(
        [
            key+"="+str(value) if type(value) != str or 'c(' in str(value)
            else key+"='"+value+"'"
            for (key, value) in param.items()
        ]
    ).replace('_', '.')