Я запускаю этот пример через терминал. Но получил fatal error: RInside.h: No such file or directory
ошибку для строки #include<RInside.h>
. Это интерфейс к R из С++. У меня есть пакет RInside в R. Мой код:
#include<iostream>
#include<RInside.h>
using namespace std;
int main(){
int a=12;
cout<<a<<endl;
return 0;
}
Такая же ошибка произошла для заголовка #include<Rcpp.h>
.
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
NumericVector callFunction(NumericVector x, Function f) {
NumericVector res = f(x);
return res;
}
Пакет RInside версии 0.2.14
Пакет Rcpp версии 0.12.17