Named と _[ が同じなのは
分かっているんだが,マニュアルというか
ビネットには記されていないような
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
List test (){
return List::create(_["first"]= "ABC",_["second"]= 3.14,
_["third"]= 3L)
// return List::create( Named ("first") = "ABC", Named("second") = 3.14,
// Named("third")= 3L);
}
/*** R
test ()
*/
Rcpp-quickref.pdf のコード内に
コメントとして // short for Named とあった.