簡體   English   中英

嘗試使用“ez”庫時出錯

[英]Error while trying to use 'ez' library

我在嘗試為rAnova調用ez庫時rAnova ,這是我在使用 success install.packages("ez")執行時找不到pbkrtest包的問題。 library(ez)返回給我以下錯誤:

 Error in loadNamespace (j <- i [[1L]], c (lib.loc, .libPaths ()) = vI VERSIONCHECK [[j]]):   no package named 'pbkrtest' is found
    In addition: Warning message: package 'ez' was compiled with version 3.2.5 R         Error: loading the package or namespace failed for 'ez'

我怎樣才能正確使用這個庫? 謝謝

編輯: 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=French_France.1252  LC_CTYPE=French_France.1252   
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

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

other attached packages:
[1] devtools_1.12.0

loaded via a namespace (and not attached):
Error in x[["Version"]] : index out of limits
De plus : Warning messages:
1: In FUN(X[[i]], ...) :
  The file DESCRIPTION  of the package 'digest' is missing or incorrect
2: In FUN(X[[i]], ...) :
  The file DESCRIPTION  of the package 'nlme' is missing or incorrect

編輯 2:重新啟動機器和 R 后的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=French_France.1252  LC_CTYPE=French_France.1252   
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

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

loaded via a namespace (and not attached):
[1] MASS_7.3-45     Matrix_1.2-7.1  tools_3.2.2     mgcv_1.8-15    
[5] nnet_7.3-12     nlme_3.1-121    grid_3.2.2      lattice_0.20-34

但在磁帶庫(ez)時仍然出現相同的錯誤(上圖)。

所以這似乎是R版本的問題。 正如錯誤中所注意到的,正如我所理解的,'ez' 是用 3.2.5 R 版編譯的。所以現在我在 3.3.1 下,我成功安裝了 EZ,可以加載庫並使用該函數。 更復雜的是重新安裝 R 和所有看起來很痛苦的包,但是感謝這篇很棒的帖子,它允許我將所有包存儲在一個臨時文件夾中並在最新版本中重新安裝它們

有關信息是否可以幫助其他人,我的 Sessioninfo() 返回:

R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    

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

other attached packages:
[1] ez_4.3

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.7        magrittr_1.5       splines_3.3.1      MASS_7.3-45        munsell_0.4.3     
 [6] colorspace_1.2-6   lattice_0.20-33    minqa_1.2.4        stringr_1.1.0      car_2.1-3         
[11] plyr_1.8.4         tools_3.3.1        nnet_7.3-12        parallel_3.3.1     pbkrtest_0.4-6    
[16] grid_3.3.1         nlme_3.1-128       gtable_0.2.0       mgcv_1.8-12        quantreg_5.29     
[21] MatrixModels_0.4-1 lme4_1.1-12        Matrix_1.2-6       nloptr_1.0.4       reshape2_1.4.1    
[26] ggplot2_2.1.0      stringi_1.1.2      scales_0.4.0       SparseM_1.72      
> 

暫無
暫無

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

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