Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘PartialNetwork-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mcmcSAR > ### Title: Bayesian Estimator of SAR model > ### Aliases: mcmcSAR > > ### ** Examples > > # We assume that the network is fully observed > # See our vignette for examples where the network is partially observed > # Number of groups > M <- 10 > # size of each group > N <- rep(20,M) > # individual effects > beta <- c(2,1,1.5) > # contextual effects > gamma <- c(5,-3) > # endogenous effects > alpha <- 0.4 > # std-dev errors > se <- 1 > # prior distribution > prior <- runif(sum(N*(N-1))) > prior <- vec.to.mat(prior, N, normalise = FALSE) > # covariates > X <- cbind(rnorm(sum(N),0,5),rpois(sum(N),7)) > # true network > G0 <- sim.network(prior) > # normalise > G0norm <- norm.network(G0) > GX <- peer.avg(G0norm, X) > # simulate dependent variable use an external package > y <- CDatanet::simsar(~ X + GX, Glist = G0norm, + theta = c(alpha, beta, gamma, se)) Error in loadNamespace(x) : there is no package called ‘CDatanet’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted