simplify parse_attributes
export -> Rcpp::export