add parser_type param to R