小编mar*_*haw的帖子

#include <Rcpp11>找不到文件错误

我试图Rcpp11在它的源代码中使用r中的包:

devtools::install_github("Rcpp11/Rcpp11")
Run Code Online (Sandbox Code Playgroud)

我在这里阅读:http://blog.r-enthusiasts.com/2014/05/27/disambiguating-rcpp11-and-rcpp/

我可以在我的文件的头部使用include <Rcpp11>+ 但我在采购时遇到此错误:using namespace Rcpp11.cpp

 egfile.cpp:1:10: fatal error: 'Rcpp11' file not found
 #include <Rcpp11>
           ^
 1 error generated.
Run Code Online (Sandbox Code Playgroud)

其中egfile.cpp:

#include <Rcpp11>
using namespace Rcpp11;

// Below is a simple example of exporting a C++ function to R. You can
// source this function into an R session using the Rcpp::sourceCpp 
// function (or via the Source button on the editor toolbar)

// For more on using …
Run Code Online (Sandbox Code Playgroud)

r rstudio rcpp11

6
推荐指数
1
解决办法
679
查看次数

标签 统计

r ×1

rcpp11 ×1

rstudio ×1