@@ -10,23 +10,14 @@ Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
1010Rcpp::Rostream<false >& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
1111#endif
1212
13- // parse
14- Rcpp::RObject parse (std::string file_name);
15- RcppExport SEXP _rds2cpp_parse (SEXP file_nameSEXP) {
13+ // parse_rds
14+ Rcpp::RObject parse_rds (std::string file_name, bool parallel );
15+ RcppExport SEXP _rds2cpp_parse_rds (SEXP file_nameSEXP, SEXP parallelSEXP ) {
1616BEGIN_RCPP
1717 Rcpp::RObject rcpp_result_gen;
1818 Rcpp::traits::input_parameter< std::string >::type file_name (file_nameSEXP);
19- rcpp_result_gen = Rcpp::wrap (parse (file_name));
20- return rcpp_result_gen;
21- END_RCPP
22- }
23- // parallel_parse
24- Rcpp::RObject parallel_parse (std::string file_name);
25- RcppExport SEXP _rds2cpp_parallel_parse (SEXP file_nameSEXP) {
26- BEGIN_RCPP
27- Rcpp::RObject rcpp_result_gen;
28- Rcpp::traits::input_parameter< std::string >::type file_name (file_nameSEXP);
29- rcpp_result_gen = Rcpp::wrap (parallel_parse (file_name));
19+ Rcpp::traits::input_parameter< bool >::type parallel (parallelSEXP);
20+ rcpp_result_gen = Rcpp::wrap (parse_rds (file_name, parallel));
3021 return rcpp_result_gen;
3122END_RCPP
3223}
@@ -61,35 +52,15 @@ BEGIN_RCPP
6152 return rcpp_result_gen;
6253END_RCPP
6354}
64- // parse_preamble
65- Rcpp::List parse_preamble (std::string file_name);
66- RcppExport SEXP _rds2cpp_parse_preamble (SEXP file_nameSEXP) {
67- BEGIN_RCPP
68- Rcpp::RObject rcpp_result_gen;
69- Rcpp::traits::input_parameter< std::string >::type file_name (file_nameSEXP);
70- rcpp_result_gen = Rcpp::wrap (parse_preamble (file_name));
71- return rcpp_result_gen;
72- END_RCPP
73- }
74- // write
75- Rcpp::RObject write (Rcpp::RObject x, std::string file_name);
76- RcppExport SEXP _rds2cpp_write (SEXP xSEXP, SEXP file_nameSEXP) {
77- BEGIN_RCPP
78- Rcpp::RObject rcpp_result_gen;
79- Rcpp::traits::input_parameter< Rcpp::RObject >::type x (xSEXP);
80- Rcpp::traits::input_parameter< std::string >::type file_name (file_nameSEXP);
81- rcpp_result_gen = Rcpp::wrap (write (x, file_name));
82- return rcpp_result_gen;
83- END_RCPP
84- }
85- // parallel_write
86- Rcpp::RObject parallel_write (Rcpp::RObject x, std::string file_name);
87- RcppExport SEXP _rds2cpp_parallel_write (SEXP xSEXP, SEXP file_nameSEXP) {
55+ // write_rds
56+ Rcpp::RObject write_rds (Rcpp::RObject x, std::string file_name, bool parallel);
57+ RcppExport SEXP _rds2cpp_write_rds (SEXP xSEXP, SEXP file_nameSEXP, SEXP parallelSEXP) {
8858BEGIN_RCPP
8959 Rcpp::RObject rcpp_result_gen;
9060 Rcpp::traits::input_parameter< Rcpp::RObject >::type x (xSEXP);
9161 Rcpp::traits::input_parameter< std::string >::type file_name (file_nameSEXP);
92- rcpp_result_gen = Rcpp::wrap (parallel_write (x, file_name));
62+ Rcpp::traits::input_parameter< bool >::type parallel (parallelSEXP);
63+ rcpp_result_gen = Rcpp::wrap (write_rds (x, file_name, parallel));
9364 return rcpp_result_gen;
9465END_RCPP
9566}
@@ -107,14 +78,11 @@ END_RCPP
10778}
10879
10980static const R_CallMethodDef CallEntries[] = {
110- {" _rds2cpp_parse" , (DL_FUNC ) &_rds2cpp_parse, 1 },
111- {" _rds2cpp_parallel_parse" , (DL_FUNC ) &_rds2cpp_parallel_parse, 1 },
81+ {" _rds2cpp_parse_rds" , (DL_FUNC ) &_rds2cpp_parse_rds, 2 },
11282 {" _rds2cpp_parse_rda" , (DL_FUNC ) &_rds2cpp_parse_rda, 2 },
11383 {" _rds2cpp_parse_length" , (DL_FUNC ) &_rds2cpp_parse_length, 1 },
11484 {" _rds2cpp_parse_single_string" , (DL_FUNC ) &_rds2cpp_parse_single_string, 1 },
115- {" _rds2cpp_parse_preamble" , (DL_FUNC ) &_rds2cpp_parse_preamble, 1 },
116- {" _rds2cpp_write" , (DL_FUNC ) &_rds2cpp_write, 2 },
117- {" _rds2cpp_parallel_write" , (DL_FUNC ) &_rds2cpp_parallel_write, 2 },
85+ {" _rds2cpp_write_rds" , (DL_FUNC ) &_rds2cpp_write_rds, 3 },
11886 {" _rds2cpp_write_rda" , (DL_FUNC ) &_rds2cpp_write_rda, 3 },
11987 {NULL , NULL , 0 }
12088};
0 commit comments