- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在尝试安装 R 包“randomForest”,为此我运行了通常的安装命令
install.packages("randomForest", dependencies = T)
这给了我以下错误,我一直难以解释。在我看来,另一个 R 包“RccpEigen”的文件夹中缺少某些东西,这会导致错误,但我不确定,而且我还没有找到解决方法。
完整的错误信息是这样的:
Installing package into ‘/home/scott/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/randomForest_4.6-14.tar.gz'
Content type 'application/x-gzip' length 80074 bytes (78 KB)
==================================================
downloaded 78 KB
* installing *source* package ‘randomForest’ ...
** package ‘randomForest’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include/" -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/" -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/unsupported" -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/BH/include" -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/src/" -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/" -I"/home/scott/R/x86_64-pc-linux-gnu-library/3.6/rstan/include" -DEIGEN_NO_DEBUG -D_REENTRANT -DBOOST_DISABLE_ASSERTS -DBOOST_PENDING_INTEGER_LOG2_HPP -include stan/math/prim/mat/fun/Eigen.hpp -fpic -g -O2 -fdebug-prefix-map=/build/r-base-V28x5H/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c classTree.c -o classTree.o
In file included from /home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/Core:88:0,
from /home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/Dense:1,
from /home/scott/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4,
from <command-line>:0:
/home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/src/Core/util/Macros.h:613:1: error: unknown type name ‘namespace’
namespace Eigen {
^~~~~~~~~
/home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/src/Core/util/Macros.h:613:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace Eigen {
^
In file included from /home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/Dense:1:0,
from /home/scott/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4,
from <command-line>:0:
/home/scott/R/x86_64-pc-linux-gnu-library/3.6/RcppEigen/include/Eigen/Core:96:10: fatal error: complex: No such file or directory
#include <complex>
^~~~~~~~~
compilation terminated.
/usr/lib/R/etc/Makeconf:168: recipe for target 'classTree.o' failed
make: *** [classTree.o] Error 1
ERROR: compilation failed for package ‘randomForest’
* removing ‘/home/scott/R/x86_64-pc-linux-gnu-library/3.6/randomForest’
Warning in install.packages :
installation of package ‘randomForest’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpbKxumd/downloaded_packages’
这是我的 session 信息:
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RcppEigen_0.3.3.7.0 lme4_1.1-21 Matrix_1.2-18 ggplot2_3.3.0 Rmisc_1.5 plyr_1.8.6
[7] lattice_0.20-38 brms_2.12.0 Rcpp_1.0.4
loaded via a namespace (and not attached):
[1] nlme_3.1-144 matrixStats_0.56.0 xts_0.12-0 threejs_0.3.3 rstan_2.19.3 tools_3.6.3
[7] backports_1.1.6 R6_2.4.1 DT_0.13 colorspace_1.4-1 withr_2.1.2 tidyselect_1.0.0
[13] gridExtra_2.3 prettyunits_1.1.1 processx_3.4.2 Brobdingnag_1.2-6 curl_4.3 compiler_3.6.3
[19] cli_2.0.2 shinyjs_1.1 labeling_0.3 colourpicker_1.0 checkmate_2.0.0 scales_1.1.0
[25] dygraphs_1.1.1.6 mvtnorm_1.1-0 readr_1.3.1 ggridges_0.5.2 callr_3.4.3 stringr_1.4.0
[31] digest_0.6.25 StanHeaders_2.19.2 foreign_0.8-75 minqa_1.2.4 rio_0.5.16 base64enc_0.1-3
[37] pkgconfig_2.0.3 htmltools_0.4.0 fastmap_1.0.1 readxl_1.3.1 htmlwidgets_1.5.1 rlang_0.4.5
[43] rstudioapi_0.11 shiny_1.4.0.2 farver_2.0.3 zoo_1.8-7 crosstalk_1.1.0.1 gtools_3.8.2
[49] zip_2.0.4 dplyr_0.8.5 car_3.0-7 inline_0.3.15 magrittr_1.5 loo_2.2.0
[55] bayesplot_1.7.1 munsell_0.5.0 fansi_0.4.1 abind_1.4-5 lifecycle_0.2.0 stringi_1.4.6
[61] carData_3.0-3 MASS_7.3-51.5 pkgbuild_1.0.6 grid_3.6.3 parallel_3.6.3 promises_1.1.0
[67] forcats_0.4.0 crayon_1.3.4 miniUI_0.1.1.1 haven_2.2.0 splines_3.6.3 hms_0.5.3
[73] ps_1.3.2 pillar_1.4.3 igraph_1.2.5 boot_1.3-24 markdown_1.1 shinystan_2.5.0
[79] codetools_0.2-16 reshape2_1.4.3 stats4_3.6.3 rstantools_2.0.0 glue_1.4.0 data.table_1.12.8
[85] vctrs_0.2.4 nloptr_1.2.1 httpuv_1.5.2 cellranger_1.1.0 gtable_0.3.0 purrr_0.3.3
[91] assertthat_0.2.1 openxlsx_4.1.4 mime_0.9 xtable_1.8-4 coda_0.19-3 later_1.0.0
[97] rsconnect_0.8.16 tibble_3.0.0 shinythemes_1.1.2 ellipsis_0.3.0 bridgesampling_1.0-0
>
任何帮助将不胜感激,因为我在编程方面不知所措。
最佳答案
我怀疑这是一个 RStudio 问题。
在基础 R 中安装 randomForest,然后您应该能够使用 library
在 RStudio 中加载。
关于R 包 'randomForest' 未安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61132182/
我听说最好不要从您系统的 Perl 版本所在的 CPAN 安装模块。我知道如何使用命令行安装模块,我只是想知道是否有办法将 CPAN 与系统核心 Perl 分开。 我应该: 下载源代码并专门为这些模块
我听说最好不要从系统的 Perl 版本所在的 CPAN 安装模块。我知道如何使用命令行安装模块,我只是想知道是否有办法将 CPAN 与系统的核心 Perl 分开。 我应该: 下载源代码并专门为这些模块
单独安装 electron 与通过 electron-builder 安装有什么区别?我正在使用 React 构建一个 Electron 应用程序,并且已经找到了一些教程。它们安装 Electron
两者安装有什么区别?我按照安装页面上的说明在全局范围内安装了 webpack,然后我转到了入门指南,据说在那里可以在本地安装 webpack-cli。 CLI = Command Line Inter
我在 OS X Yosemite 上用 PHP 安装了默认的 Apache 服务器,安装了 pear,用 brew 安装了 Solr (brew install solr),现在我正在尝试使用 PEC
我解压并编译了 Ruby 2.1 并安装了几个支持工具。 但是当我安装了 libssl-dev 时,OpenSSL 不会安装。 我在支持 openssl 时遇到这个错误: make: *** No r
我在 android studio 2.3.1 和 gradle 3.2 中设计了 2 到 3 个应用程序。当我从它运行应用程序到任何设备或模拟器时,一切都工作正常。但是当我从构建文件夹中获取该 ap
我注意到我正在读一本书提到通过 apt-get 安装 numpy 和 opencv apt-get install python-numpy python-opencv 但我可以通过以下方式在 pip
我正在尝试在 Windows 8.1 上安装 ansicon。我提取了文件并达到了我需要调用 ansicon -i 的级别。当我在 cmd 中输入此内容并运行 python 脚本时效果很好,但是当我通
我有 linux MINT 17.3 Kernel 4.4.0-81 所有更新可用。 (由于不同的原因,我无法迁移到更新版本的 ubuntu/mint) 我已经通过 PPA 安装了 FFMPEG(不是
尝试在本地运行我的应用程序时出现错误: 我只在 chrome 浏览器中收到此错误。我尝试过不同的东西,但我不确定为什么它是 Chrome 特定的。 最佳答案 我怀疑这不是 Firebase 问题,而是
这是我第一次开发 AngularJS 应用程序并使用脚手架工具 Yeoman ( http://yeoman.io/ )。我想对我的一些图标使用 fontawesome ( http://fortaw
我知道您通常“应该”$ pip install 如果包没有 brew ,但如果有一个你想安装的 python 包,你可以使用 $ pip install或 $ brew install为了?例如,通过
我正在尝试通过 RVM 安装 Ruby 1.9.3。然而,当谈到安装 RubyGems 时,我得到了这个: curl: (22) The requested URL returned error: 4
我是真正提出问题的新手,但你去吧。 我一直在尝试按照安装指南添加 dnsname: https://github.com/containers/dnsname https://github.com/c
Studio更新至0.4.0 建筑产量为“需要1.8版Gradle”;将设置设置为1.8 bin目录; 建立 “要求1.9级”;将设置设置为1.9 bin; 建立 “要求1.8级” 啊。不知道该怎么做
我刚刚注意到 kernel.org 因维护而停机。是否有使用不同镜子的不同公式?或者我可以向 Homebrew 软件添加不同的来源(如 bundler ?)? 谢谢你的帮助! 最佳答案 快速解决方法:
当我运行时: peardev install phpunit/PHPUnit 我得到以下信息: No releases available for package "pear.phpunit.de/P
服务器操作系统为Fedora 24. 64bit。 我想安装 Git 2.6.6。 所以下载源码并安装。 此服务器离线。所以我不使用“yum”。 ./configure --prefix=/usr/l
我正在尝试在我自己的服务器(操作系统:Linux Ubuntu Server 12.04)上安装 OpenEdX,但我遇到了同样的错误。谁能帮帮我? TASK: [ insights | insta
我是一名优秀的程序员,十分优秀!