[英]R-devel: “object 'checkCompilerOptions' not found” when installing magrittr
I've installed R-devel on Ubuntu following this guide . 我按照本指南在Ubuntu上安装了R-devel。 When trying to install magrittr with
install.packages("magrittr")
I'm getting this: 当尝试使用
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
The single other stackoverflow question refering to this error didn't help me. 引用此错误的单个其他stackoverflow问题对我没有帮助。 Can anyone help?
有人可以帮忙吗?
What I'm really trying to do is to install the latest development version of the Gviz package. 我真正想做的是安装Gviz软件包的最新开发版本。 In order to do that I must use the development version of bioconductor and R .
为了做到这一点, 我必须使用bioconductor和R的开发版本 。 Down in the dependency tree for Gviz comes magrittr.
在Gviz的依赖树中下来magrittr。
My sessionInfo(): 我的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
I had the same problem installing the raster
package. 我在安装
raster
包时遇到了同样的问题。 I found out here that the problem was a conflict between library directories exported by the second script of the guide you are mentionning: 我在这里发现问题是你提到的指南的第二个脚本导出的库目录之间的冲突:
#!/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 "$@"
So I removed the library folders not related to my R-devel instance: 所以我删除了与我的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 "$@"
And it finally worked. 它终于奏效了。
I was able to install Gviz! 我能够安装Gviz! This is what got me there:
这就是让我在那里的原因:
devtools::install_github("Bioconductor-mirror/Gviz")
to install Gviz instead of doing it with biocLite("Gviz")
. devtools::install_github("Bioconductor-mirror/Gviz")
安装Gviz而不是使用biocLite("Gviz")
。 This got me the checkCompilerOptions
error, but now with the package matrixStats. checkCompilerOptions
错误,但现在使用包matrixStats。 devtools::install_github("HenrikBengtsson/matrixStats")
. devtools::install_github("HenrikBengtsson/matrixStats")
安装了matrixStats。 This worked. install.packages("magrittr")
. install.packages("magrittr")
再次安装magrittr。 It worked somehow! devtools::install_github("Bioconductor-mirror/Gviz")
devtools::install_github("Bioconductor-mirror/Gviz")
安装Gviz I still have no idea about the checkCompilerOptions
error, and would appreciate any ideas. 我仍然不知道
checkCompilerOptions
错误,并会感谢任何想法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.