r - 无法在 R Studio 中安装 statnet 包
问题描述
我在尝试安装 statnet 包时收到以下警告和错误消息:
> installing *source* package 'statnet' ...
>
> package 'statnet' successfully unpacked and MD5 sums checked
>
> R
>
> inst
>
> byte-compile and prepare package for lazy loading
>
> Warning: package 'tergm' was built under R version 3.5.3
>
> Warning: package 'ergm' was built under R version 3.5.3
>
> Warning: package 'network' was built under R version 3.5.3
>
> Error: package or namespace load failed for 'network' in
> loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
> vI[[j]]): there is no package called 'tibble'
>
> Error : package 'network' could not be loaded
>
> ERROR: lazy loading failed for package 'statnet'
>
> removing 'C:/Users/Users/Documents/R/win-library/3.5/statnet
>
> In R CMD INSTALL
>
> Warning in install.packages :
>
> installation of package ‘statnet’ had non-zero exit status
我可以知道如何解决这个问题吗?提前致谢!
解决方案
首先,我会重新启动您的 R 会话。错误信息:
there is no package called 'tibble'
表示您没有该tibble
包。类似的,错误信息
Error : package 'network' could not be loaded
表示您没有该network
包。
我将通过键入以下命令在控制台上安装这些软件包:
install.packages(c("tibble", "network"),dependencies=TRUE))
然后尝试安装你的包。
install.packages("statnet", ,dependencies=TRUE))
推荐阅读
- ios - iOS - 在 Swift 中的 UIImage 上绘制矩形 (CGRect) 无法正常工作
- php - Laravel 向数据库插入数据时出现命令错误
- mysql - 如何使用不同的主机名、用户名、密码值动态连接 mysql 数据库
- r - R:为什么插入符号中的 train() 函数返回空模型(调用:NULL)?
- c++ - 为什么不使用“virtual”关键字就不能动态绑定?
- java - java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.AnnotatedBeanDefinition.setRole(I)V
- xamarin.forms - 当 xamarin 形成 nuget 包升级时,RelayCommand 未执行
- java - Modbus TCP 上的 Java 编程将 4 个整数寄存器转换为双精度值
- c# - c#中删除子文件夹
- json - TableView 中带有 JSON 对象的搜索栏 - Swift