我正在尝试将我的cpp文件包含到Rscript中
library(Rcpp)
Rcpp::sourceCpp('Simulation/Code/RcppFuncs.cpp')
但是,出现以下错误。有什么我忘记的东西吗?该文件肯定在文件夹中,与错误提示不同。
Error in Rcpp::sourceCpp(file = "Simulation/Code/RcppFuncs.cpp") :
file not found: 'Simulation/Code/RcppFuncs.cpp'
In addition: Warning messages:
1: In normalizePath(dirname(file)) :
path[1]="Simulation/Code": No such file or directory
2: In normalizePath(file, winslash = "/") :
path[1]="Simulation/Code/RcppFuncs.cpp": No such file or directory