r - dplyr 编译问题,Rcpp.h : no such file or directory

标签 r ubuntu dplyr

尝试在 Ubuntu 中编译 dplyr(r-baser-base-dev 是最新的):

R -e 'install.packages("dplyr", repos="http://cran.rstudio.com/")'

编译报错:

RcppExports.cpp: ..fatal error: Rcpp.h: no such file or directory

我尝试卸载并重新安装 Rcpp:

sudo apt-get remove r-cran-rcpp
sudo apt-get install r-cran-rcpp

我尝试再次编译,但出现了同样的错误。

最佳答案

Rcpp 相关问题在fedora27 中很常见。 确保安装了 R-Rcpp-devel 和 R-core-devel。

dnf install R-core-devel
dnf install R-Rcpp-devel

关于r - dplyr 编译问题,Rcpp.h : no such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36908909/

相关文章:

r - 从 Excel 到 R 的日期,平台依赖性

linux - 如何通过linux终端在文本文件中创建一个名为sth的文件夹?

ubuntu - 我的 .so 如何在不同的 Ubuntu 版本中找到其依赖的 .so?

r - 按行获取 x 值之间的平均列数

r - 不同组中不重复 R 的样本百分比

r - 循环计算权重并创建新变量

r - 将数字列表转换为字符时,如何控制数字的格式?

c++ - snprintf 的交叉编译版本在字符串缓冲区中分配适量的内存

r - 对列应用函数,结果不会根据函数的结果替换列值

R 包 : namespace ‘rlang’ 1. 0.6 已加载,但需要 >= 1.1.0