テスト関数を実行しようとしていますが、コンパイルエラーが発生します:
library(Rcpp)
library(inline)
testfun = cxxfunction(
signature(x="numeric", i="integer"),
body = '
NumericVector xx(x);
int ii = as<int>(i);
xx = xx * ii;
return( xx );
', plugin="Rcpp")
testfun(1:5, 3)
compileCode(f、code、language = language、verbose = verbose)のエラー:コンパイルエラー、関数/メソッドが作成されていません!さらに:警告メッセージ:実行中のコマンド'C:/ PROGRA〜1 / R / R-215〜1.1 / bin / x64 / R CMD SHLIB filede44a566900.cpp2>filede44a566900.cpp.err.txt'のステータスは1
よろしくお願いします。私はWindows7、R2.15.1、64ビットを使用しています