R-devel:安装 magrittr 时 "object 'checkCompilerOptions' not found"
R-devel: "object 'checkCompilerOptions' not found" when installing magrittr
我在 this guide 之后的 Ubuntu 上安装了 R-devel。当尝试使用 install.packages("magrittr")
安装 magrittr 时,我得到这个:
* installing *source* package ‘magrittr’ ...
** package ‘magrittr’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'checkCompilerOptions' not found
Calls: ::: -> get
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/magrittr’
The downloaded source packages are in
‘/tmp/RtmpagwvBj/downloaded_packages’
Warning message:
In install.packages("magrittr") :
installation of package ‘magrittr’ had non-zero exit status
提到此错误的 对我没有帮助。有人可以帮忙吗?
我真正 尝试做的是安装 Gviz package. In order to do that I must use the development version of bioconductor and R 的最新开发版本。在 Gviz 的依赖树中向下是 magrittr。
我的sessionInfo():
R Under development (unstable) (2016-02-18 r70185)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 15.10
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=nb_NO.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=nb_NO.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=nb_NO.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=nb_NO.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] tools_3.3.0 tcltk_3.3.0
我能够安装 Gviz!这就是让我到达那里的原因:
- 我尝试使用
devtools::install_github("Bioconductor-mirror/Gviz")
安装 Gviz 而不是使用 biocLite("Gviz")
。这让我遇到了 checkCompilerOptions
错误,但现在有了 matrixStats 包。
- 我使用
devtools::install_github("HenrikBengtsson/matrixStats")
安装了 matrixStats。这有效。
- 此时我尝试再次安装 magrittr,使用
install.packages("magrittr")
。它以某种方式工作!
- 我现在可以使用
devtools::install_github("Bioconductor-mirror/Gviz")
安装 Gviz
我仍然不知道 checkCompilerOptions
错误,如果有任何想法,我将不胜感激。
我在安装 raster
软件包时遇到了同样的问题。我发现 here 问题是您提到的指南的第二个脚本导出的库目录之间存在冲突:
#!/bin/bash
export R_LIBS_SITE=${R_LIBS_SITE-'/usr/lib/R-devel/lib/R/library:/usr/local/lib/R/site-library:/usr/lib/R/site-library::/usr/lib/R/library'}
export PATH="/usr/local/lib/R-devel/bin:$PATH"
R "$@"
所以我删除了与我的 R-devel 实例无关的库文件夹:
#!/bin/bash
export R_LIBS_SITE=${R_LIBS_SITE-'/usr/lib/R-devel/lib/R/library:/usr/local/lib/R/site-library'}
export PATH="/usr/local/lib/R-devel/bin:$PATH"
R "$@"
终于成功了。
我在 this guide 之后的 Ubuntu 上安装了 R-devel。当尝试使用 install.packages("magrittr")
安装 magrittr 时,我得到这个:
* installing *source* package ‘magrittr’ ...
** package ‘magrittr’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'checkCompilerOptions' not found
Calls: ::: -> get
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/magrittr’
The downloaded source packages are in
‘/tmp/RtmpagwvBj/downloaded_packages’
Warning message:
In install.packages("magrittr") :
installation of package ‘magrittr’ had non-zero exit status
提到此错误的
我真正 尝试做的是安装 Gviz package. In order to do that I must use the development version of bioconductor and R 的最新开发版本。在 Gviz 的依赖树中向下是 magrittr。
我的sessionInfo():
R Under development (unstable) (2016-02-18 r70185)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 15.10
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=nb_NO.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=nb_NO.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=nb_NO.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=nb_NO.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] tools_3.3.0 tcltk_3.3.0
我能够安装 Gviz!这就是让我到达那里的原因:
- 我尝试使用
devtools::install_github("Bioconductor-mirror/Gviz")
安装 Gviz 而不是使用biocLite("Gviz")
。这让我遇到了checkCompilerOptions
错误,但现在有了 matrixStats 包。 - 我使用
devtools::install_github("HenrikBengtsson/matrixStats")
安装了 matrixStats。这有效。 - 此时我尝试再次安装 magrittr,使用
install.packages("magrittr")
。它以某种方式工作! - 我现在可以使用
devtools::install_github("Bioconductor-mirror/Gviz")
安装 Gviz
我仍然不知道 checkCompilerOptions
错误,如果有任何想法,我将不胜感激。
我在安装 raster
软件包时遇到了同样的问题。我发现 here 问题是您提到的指南的第二个脚本导出的库目录之间存在冲突:
#!/bin/bash
export R_LIBS_SITE=${R_LIBS_SITE-'/usr/lib/R-devel/lib/R/library:/usr/local/lib/R/site-library:/usr/lib/R/site-library::/usr/lib/R/library'}
export PATH="/usr/local/lib/R-devel/bin:$PATH"
R "$@"
所以我删除了与我的 R-devel 实例无关的库文件夹:
#!/bin/bash
export R_LIBS_SITE=${R_LIBS_SITE-'/usr/lib/R-devel/lib/R/library:/usr/local/lib/R/site-library'}
export PATH="/usr/local/lib/R-devel/bin:$PATH"
R "$@"
终于成功了。