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信息!
好神奇哦!