xts-0.9-1パッケージによって提供されるCのxts_APIは、C++で直接使用することはできません。例えばRcppでxtsパッケージのC apiを使用する方法
、1が書く場合
#include <Rcpp.h>
extern "C" {
#include <xts.h>
}
using namespace Rcpp;
RcppExport SEXP get_xts_index(SEXP x, SEXP value) {
BEGIN_RCPP
return SET_xtsIndexClass(x, value);
END_RCPP
}
あり、以下のことになるのコンパイラ時エラー:
error: expected identifier before ‘)’ token
error: ‘install’ was not declared in this scope
error: ‘getAttrib’ was not declared in this scope
error: ‘setAttrib’ was not declared in this scope
Cのためにxts_APIを起動する方法
error: ‘xts_IndexvalueSymbol’ was not declared in this scope
?
+1課外活動 – GSee