| 364 | |
| 365 | template <typename T> |
| 366 | std::vector<T> from_r_list(cpp11::list args) { |
| 367 | std::vector<T> vec; |
| 368 | R_xlen_t n = args.size(); |
| 369 | for (R_xlen_t i = 0; i < n; i++) { |
| 370 | vec.push_back(cpp11::as_cpp<T>(args[i])); |
| 371 | } |
| 372 | return vec; |
| 373 | } |
| 374 | |
| 375 | bool GetBoolOption(const std::string& name, bool default_); |
| 376 |