为R. nlopt linux安装错误安装插入符号

时间:2017-10-03 17:38:29

标签: r linux installation

我是linux的新手并且正在努力为R安装插入符号。我在插入符号安装过程中收到以下错误。

configure: Need to download and build NLopt
trying URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
Error in download.file(url = "http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz",  : 
  cannot open URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
Execution halted
/bin/gtar: This does not look like a tar archive

gzip: stdin: unexpected end of file
/bin/gtar: Child returned status 1
/bin/gtar: Error is not recoverable: exiting now
Warning message:
In untar(tarfile = "nlopt-2.4.2.tar.gz") :
  '/bin/gtar -xf 'nlopt-2.4.2.tar.gz'' returned error code 2
configure: Starting to install library to /tmp/RtmpIT5jNR/R.INSTALL17d113d7c2a/nloptr/nlopt-2.4.2
./configure: line 3325: cd: nlopt-2.4.2: No such file or directory

此后停止,浮动,然后我必须崩溃R来修复它。我已经通过nlopt网站进行了搜索,并根据错误尝试手动安装到R中。我有实际的tar文件,我把它放入Rstudios包文件,然后经历了安装它的过程。但是,这似乎根本不起作用。我猜测有什么特定的R需要完成安装吗?

注意我已尝试通过install.packages安装nlopt,并发生同样的错误。有任何想法吗?

编辑1:

> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS release 6.9 (Final)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets 
[7] methods   base     

other attached packages:
 [1] nnet_7.3-11      Hmisc_3.17-0     Formula_1.2-1   
 [4] survival_2.38-3  lattice_0.20-33  readxl_0.1.0    
 [7] reshape2_1.4.1   ggplot2_1.0.1    dplyr_0.4.3     
[10] data.table_1.9.6

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.2         cluster_2.0.3       magrittr_1.5       
 [4] splines_3.2.2       MASS_7.3-43         munsell_0.4.2      
 [7] colorspace_1.2-6    R6_2.1.1            stringr_1.0.0      
[10] plyr_1.8.3          tools_3.2.2         parallel_3.2.2     
[13] gtable_0.1.2        latticeExtra_0.6-26 DBI_0.3.1          
[16] lazyeval_0.1.10     assertthat_0.1      digest_0.6.8       
[19] gridExtra_2.0.0     RColorBrewer_1.1-2  acepack_1.3-3.3    
[22] rpart_4.1-10        stringi_1.0-1       RevoUtils_8.0.0    
[25] scales_0.3.0        foreign_0.8-65      chron_2.3-47       
[28] proto_0.3-10    

我重新认识我没有使用最新版本的R而且不幸的是无法升级。然而,Caret包装信息声称它应该适用于大于R(> = 2.1),晶格(> = 0.2)和ggplot2的任何东西。符合所有标准。

0 个答案:

没有答案