issue #1232 [[Rcpp::export]]
| 196 | // issue #1232 |
| 197 | // [[Rcpp::export]] |
| 198 | Rcpp::DataFrame DataFrame_PushOnEmpty() { |
| 199 | int n = 0; |
| 200 | Rcpp::IntegerVector foo(n); |
| 201 | Rcpp::CharacterVector bar(n); |
| 202 | Rcpp::CharacterVector baz(n); |
| 203 | |
| 204 | Rcpp::List ll = Rcpp::List::create(Rcpp::Named("foo") = foo, |
| 205 | Rcpp::Named("bar") = bar); |
| 206 | ll.push_back(baz, "baz"); |
| 207 | return Rcpp::DataFrame(ll); |
| 208 | } |