In the documentation you describe how to create a named list:
#include <cpp11.hpp>
[[cpp11::register]]
cpp11::list foo_push() {
using namespace cpp11::literals;
cpp11::writable::list x;
x.push_back({"foo"_nm = 1});
return x;
}
Is it possible to create an unnamed list? I've tried something like below but it does not work, and I can't find anything in the documentation about this.
#include <cpp11.hpp>
[[cpp11::register]]
cpp11::list foo_push() {
using namespace cpp11::literals;
cpp11::writable::list x;
x.push_back(1);
return x;
}
In the documentation you describe how to create a named list:
Is it possible to create an unnamed list? I've tried something like below but it does not work, and I can't find anything in the documentation about this.