0
我正在运行中的R-Studio给出下面的C++代码RCPP错误:意外 '/' 中的 “/”
# include<Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
NumericVector timesTwo(NumericVector x) {
return x * 2;
}
/*** R
timesTwo(42)
*/
2错误的类型来了:
Error: unexpected symbol in "using namespace"
Error: unexpected '/' in "/"