RStudio安装tsna时报错installation of package ‘tsna’ had non-zero exit status

Windows 10,RStudio安装tsna,先帖一下报错提示

> install.packages("tsna")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

  There is a binary version available but the source version is later:
     binary source needs_compilation
tsna  0.3.3  0.3.5             FALSE

installing the source package ‘tsna’

trying URL 'https://cran.rstudio.com/src/contrib/tsna_0.3.5.tar.gz'
Content type 'application/x-gzip' length 1988909 bytes (1.9 MB)
downloaded 1.9 MB

* installing *source* package 'tsna' ...
** 成功将'tsna'程序包解包并MD5和检查
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: package or namespace load failed for 'networkDynamic' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 不存在叫'rle'这个名字的程辑包
错误: 无法载入程辑包'networkDynamic'
此外: Warning messages:
1: 程辑包'network'是用R版本3.6.3 来建造的 
2: 程辑包'networkDynamic'是用R版本3.6.3 来建造的 
停止执行
ERROR: lazy loading failed for package 'tsna'
* removing 'F:/Rlanguage_install/R-3.6.0/library/tsna'
Warning in install.packages :
  installation of package ‘tsna’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\ASUS\AppData\Local\Temp\RtmpAPKgkk\downloaded_packages’

根据错误提示,先执行了安装"rle"包

> install.packages("rle")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rle_0.9.2.zip'
Content type 'application/zip' length 65773 bytes (64 KB)
downloaded 64 KB

package ‘rle’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\ASUS\AppData\Local\Temp\RtmpAPKgkk\downloaded_packages

然后再执行tsna包的安装

> install.packages("tsna")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/

  There is a binary version available but the source version is later:
     binary source needs_compilation
tsna  0.3.3  0.3.5             FALSE

installing the source package ‘tsna’

trying URL 'https://cran.rstudio.com/src/contrib/tsna_0.3.5.tar.gz'
Content type 'application/x-gzip' length 1988909 bytes (1.9 MB)
downloaded 1.9 MB

* installing *source* package 'tsna' ...
** 成功将'tsna'程序包解包并MD5和检查
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Warning messages:
1: 程辑包'network'是用R版本3.6.3 来建造的 
2: 程辑包'networkDynamic'是用R版本3.6.3 来建造的 
** help
*** installing help indices
  converting help for package 'tsna'
    finding HTML links ... 好了
    create_tree                             html  
    density                                 html  
    finding level-2 HTML links ... done

    durations                               html  
    incidence                               html  
    moodyContactSim                         html  
    pShiftCount                             html  
    paths                                   html  
    plotpath                                html  
    reachable                               html  
    reachable_set_sizes                     html  
    tDegree                                 html  
    tErgmStats                              html  
    tSnaStats                               html  
    tiedDuration                            html  
    timeProjectedNetwork                    html  
    tsna                                    html  
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Warning: package 'network' was built under R version 3.6.3
Warning: package 'networkDynamic' was built under R version 3.6.3
*** arch - x64
Warning: package 'network' was built under R version 3.6.3
Warning: package 'networkDynamic' was built under R version 3.6.3
** testing if installed package can be loaded from final location
*** arch - i386
Warning: package 'network' was built under R version 3.6.3
Warning: package 'networkDynamic' was built under R version 3.6.3
*** arch - x64
Warning: package 'network' was built under R version 3.6.3
Warning: package 'networkDynamic' was built under R version 3.6.3
** testing if installed package keeps a record of temporary installation path
* DONE (tsna)
Making 'packages.html' ... 好了

The downloaded source packages are in
	‘C:\Users\ASUS\AppData\Local\Temp\RtmpAPKgkk\downloaded_packages’

虽然有很多wearning信息,但最终显示“好了”,也可以成功导入了,虽然还是在导入时显示了很多warning信息!

好神奇哦!

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值