Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最初に整数ベクトルに変換せずに、整数の SEXP パラメータを整数に直接変換することは可能ですか?
例:
#include <Rcpp.h> SEXP f(SEXP n) { Rcpp::IntegerVector n_vec(n); int n1 = n_vec[0]; ... return R_NilValue; }