How to push a named value to a vector in R's cpp11?
Within R's a package cpp11
, a named value is pushed to a list as follows:
writable::list a;
a.push_back("my_name"_nm = 1);
How to do the same if "my_name"
was stored in the string variable?
Comments
Post a Comment