簡體   English   中英

軟件包“圖表”的安裝退出狀態為非零

[英]installation of package ‘recharts’ had non-zero exit status

請幫助我在R中安裝recharts軟件包。結果是:

軟件包“圖表”的安裝退出狀態為非零

我無法安裝。 來自R控制台的代碼發布在下面:

install.packages('recharts', repos = c('http://yihui.name/xran', 'http://cran.rstudio.com'))
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  unable to access index for repository http://yihui.name/xran/bin/windows/contrib/3.2
installing the source package ‘recharts’

trying URL 'http://yihui.name/xran/src/contrib/recharts_0.0.3.tar.gz'
Content type 'application/octet-stream' length 899632 bytes (878 KB)
downloaded 878 KB

'D:\Program' 不是內部或外部命令,也不是可運行的程序
或批處理文件。
Warning in install.packages :
  running command '"D:/Program Files/R/R-3.2.2/bin/x64/R" CMD INSTALL -l "D:\Program Files\R\R-3.2.2\library" C:\Users\xgf-pc\AppData\Local\Temp\RtmpwDIN6k/downloaded_packages/recharts_0.0.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘recharts’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\xgf-pc\AppData\Local\Temp\RtmpwDIN6k\downloaded_packages’

我的機器信息如下:

sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936  LC_CTYPE=Chinese (Simplified)_China.936   
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C                              
[5] LC_TIME=Chinese (Simplified)_China.936    

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

other attached packages:
 [1] xlsx_0.5.7       xlsxjars_0.6.1   rJava_0.9-7      RODBC_1.3-12     data.table_1.9.6
 [6] dplyr_0.4.1      chron_2.3-47     sqldf_0.4-10     RSQLite_1.0.0    DBI_0.3.1       
[11] gsubfn_0.6-6     proto_0.3-10     shiny_0.12.2     devtools_1.9.1  

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.1      rstudioapi_0.3.1 knitr_1.11       magrittr_1.5     xtable_1.8-0    
 [6] R6_2.1.1         stringr_1.0.0    httr_1.0.0       tools_3.2.2      parallel_3.2.2  
[11] htmltools_0.2.6  assertthat_0.1   digest_0.6.8     curl_0.9.3       memoise_0.2.1   
[16] mime_0.4         stringi_1.0-1    jsonlite_0.9.17  httpuv_1.3.3

您可以嘗試以下方法:

install.packages("recharts",type="source",repos=c("http://yihui.name/xran", "http://cran.rstudio.com"))

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM