尝试在 Ubuntu 中编译 dplyr
(r-base
和 r-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/