"fatal error: Eigen/Core: No such file or directory" when installing rpf package in rstudio

"fatal error: Eigen/Core: No such file or directory" when installing rpf package in rstudio

我需要 rpf 包作为 MBESS 包的依赖项。在安装过程中,rstudio 执行以下操作:

    Installing package into ‘/home/gata/R/x86_64-pc-linux-gnu-library/3.4’
    (as ‘lib’ is unspecified)
    versuche URL 'https://cloud.r-project.org/src/contrib/rpf_0.59.tar.gz'
    Content type 'application/x-gzip' length 347458 bytes (339 KB)
    ==================================================
    downloaded 339 KB

    * installing *source* package ‘rpf’ ...
    ** Paket ‘rpf’ erfolgreich entpackt und MD5 Summen überprüft
    ** libs
    g++  -I/usr/share/R/include -DNDEBUG  -I"/home/gata/R/x86_64-pc-linux-        gnu-library/3.4/RcppEigen/include"   -fopenmp    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-AitvI6/r-base-3.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c ba81quad.cpp -o ba81quad.o
    In file included from ba81quad.cpp:18:0:
    rpf.h:25:10: fatal error: Eigen/Core: Datei oder Verzeichnis nicht gefunden
    #include "Eigen/Core"
      ^~~~~~~~~~~~
    compilation terminated.
    /usr/lib/R/etc/Makeconf:168: recipe for target 'ba81quad.o' failed
    make: *** [ba81quad.o] Error 1
    ERROR: compilation failed for package ‘rpf’
    * removing ‘/home/gata/R/x86_64-pc-linux-gnu-library/3.4/rpf’
    Warning in install.packages :
      installation of package ‘rpf’ had non-zero exit status

    The downloaded source packages are in
        ‘/tmp/RtmpPz090Z/downloaded_packages’

我研究了 Eigen 库,但我不知道如何在安装过程中解决这个问题。

是否有解决此问题的建议?

关于我的 OS 和 R 版本的信息:

只需安装 RcppEigen 包即可解决 (https://cran.r-project.org/web/packages/RcppEigen/index.html)。 仍然不知道为什么这不应该作为依赖项。