r - loadNamespace 错误,使用包 plm 找不到对象 'vI'

标签 r namespaces install.packages plm

我以前安装软件包时从未遇到过问题。
当我第一次尝试安装 plm 时包,它给了我一个错误说包 pbkrtest没有安装。所以我尝试安装 pbkrtest , 但是 install.packages("pbkrtest")没有用,它给了我这个错误信息:

install.packages("pbkrtest") Installing package into ‘C:/Users/Flo/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘pbkrtest’ is not available (for R version 3.2.2)



我是从 https://cran.r-project.org/src/contrib/Archive/pbkrtest/ 手动下载的并将其放入相应的目录中。

继续,我现在可以安装 plm。尽管如此,我现在遇到了这个错误并且无法使用 plm 包:
library(plm)

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : object 'vI' not found
In addition: Warning message:
package ‘plm’ was built under R version 3.2.3
Error: package or namespace load failed for ‘plm’



这是我的 session 信息:
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=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

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

other attached packages:
[1] dplyr_0.4.3    ggplot2_2.1.0  magrittr_1.5   stargazer_5.2  foreign_0.8-65 Formula_1.2-1 

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.3      knitr_1.12.3     MASS_7.3-43      munsell_0.4.3    colorspace_1.2-6
 [6] lattice_0.20-33  R6_2.1.2         plyr_1.8.3       tools_3.2.2      parallel_3.2.2  
[11] nnet_7.3-10      grid_3.2.2       nlme_3.1-125     gtable_0.2.0     DBI_0.3.1       
[16] lmtest_0.9-34    assertthat_0.1   bdsmatrix_1.3-2  sandwich_2.3-4   scales_0.4.0    
[21] zoo_1.7-12 

最佳答案

如果这仍然是一个问题并且您已更新到 3.3.0,请尝试使用 type="win.binary"参数。

install.packages("plm", dependencies=TRUE, type="win.binary")

关于r - loadNamespace 错误,使用包 plm 找不到对象 'vI',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35942473/

相关文章:

R Studio 1.1.456 (Windows) : Why do I sometimes have to install binary packages instead of installing from the source?

r - 在 Ubuntu 16.04 上安装 geoR

R:如何通过前一天的信息改变证券交易所日指数时间序列的缺口(假期)?

php - 调用在另一个命名空间中定义的不带前缀的 PHP 函数

java - 如何在 JAVA 中为单个 XML 元素编写默认命名空间和带有前缀的命名空间

c# - System.Numerics 在 VS2008 中的使用

r - 无法在 R 3.4.1 redhat linux 上安装软件包

R Shiny : checkBox format

r - Shapefile、要素类或网络数据集转换为 R

r - 根据大小向 ggplot2 geom_tile 图添加图例