简体   繁体   English

loadNamespace中的错误,软件包plm找不到对象'vI'

[英]Error in loadNamespace, object 'vI' not found with package plm

I never had problems with installing packages before. 我以前从来没有安装软件包的问题。 When I first tried to install the plm package, it gave me an error saying that package pbkrtest was not installed. 当我第一次尝试安装plm软件包时,它给我一个错误,说未安装软件包pbkrtest So I tried installing pbkrtest , but install.packages("pbkrtest") did not work, it gave me this error message: 因此,我尝试安装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) install.packages(“ pbkrtest”)将软件包安装到'C:/Users/Flo/Documents/R/win-library/3.2'(未指定'lib')install.packages中的警告:软件包'pbkrtest'不可用(对于R版本3.2.2)

I downloaded it manually from https://cran.r-project.org/src/contrib/Archive/pbkrtest/ and put it into the respective directory. 我是从https://cran.r-project.org/src/contrib/Archive/pbkrtest/手动下载的,并将其放入相应的目录中。

Moving on, I could now install plm. 继续,我现在可以安装plm。 Nevertheless, I am now stuck with this error and cannot use the plm package: 不过,我现在仍然会遇到此错误,无法使用plm软件包:

library(plm)

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : object 'vI' not found loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:找不到对象'vI'
In addition: Warning message: 另外:警告消息:
package 'plm' was built under R version 3.2.3 软件包“ plm”是在R版本3.2.3下构建的
Error: package or namespace load failed for 'plm' 错误:“ plm”的程序包或名称空间加载失败

Here is my session info: 这是我的会话信息:

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")

I had the same problem with another package (proast65.5). 我在另一个软件包(proast65.5)中也遇到了同样的问题。

The solution that worked for me was: 对我有用的解决方案是:

Go to the map with the package and open the file DESCRIPTION. 转到带有包装的地图,然后打开文件DESCRIPTION。 In my DESCRIPTION file there was a line starting with Imports: I loaded all the package mentioned in that line with 在我的Description文件中,有一行以Imports开头:我加载了该行中提到的所有软件包

install.packages(package-name)

After that, I was able to load my library in R with the command 之后,我可以使用以下命令将我的库加载到R中

library(proast65.5)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 加载命名空间时出错,object 'vI' not found with package AnnotationDbi - Error in load Namespace, object 'vI' not found with package AnnotationDbi 错误:package 或 loadNamespace 中“EGSEA”的命名空间加载失败(i,c(lib.loc,.libPaths()),versionCheck = vI[[i]]): - Error: package or namespace load failed for ‘EGSEA’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): 对于Copula包,R中的loadNamespace出错 - Error in loadNamespace in R for Copula package loadNamespace(name)中的错误:没有名为“ Rcompression”的软件包 - Error in loadNamespace(name) : there is no package called ‘Rcompression’ loadNamespace(name) 错误:没有名为“Rcpp”的包 - Error in loadNamespace(name) : there is no package called 'Rcpp' loadNamespace(name)中的错误:没有名为“ RInside”的软件包 - Error in loadNamespace(name) : there is no package called 'RInside' 错误:loadNamespace 中“tidyverse”的包或命名空间加载失败 - Error: package or namespace load failed for ‘tidyverse’ in loadNamespace loadNamespace(name) 中的错误:没有名为“evaluate”的包 - Error in loadNamespace(name) : there is no package called 'evaluate' R中的plm软件包安装错误 - plm package in R Installation error loadNamespace 中的错误(j &lt;- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): - Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM