0

I got the following warning and error messages while I was trying to install the statnet package:

> 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

May I know how to solve the problem? Thanks in advance!

MDEWITT
  • 2,338
  • 2
  • 12
  • 23
KHW
  • 3
  • 3

1 Answers1

0

First, I would restart your R session. The error message:

there is no package called 'tibble'

Indicates that you don't have the tibble package. Simillary, the error message

Error : package 'network' could not be loaded

Indicates that you don't have the network package.

I would install these packages on the console by typing:

install.packages(c("tibble", "network"),dependencies=TRUE))

Then try to install your package.

install.packages("statnet", ,dependencies=TRUE))
MDEWITT
  • 2,338
  • 2
  • 12
  • 23