* using log directory 'd:/Rcompile/CRANpkg/local/3.4/ergm.count.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'ergm.count/DESCRIPTION' ... OK * this is package 'ergm.count' version '3.3.0' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'ergm.count' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * loading checks for arch 'i386' ** checking whether the package can be loaded ... OK ** checking whether the package can be loaded with stated dependencies ... OK ** checking whether the package can be unloaded cleanly ... OK ** checking whether the namespace can be loaded with stated dependencies ... OK ** checking whether the namespace can be unloaded cleanly ... OK ** checking loading without being on the library search path ... OK ** checking use of S3 registration ... OK * loading checks for arch 'x64' ** checking whether the package can be loaded ... OK ** checking whether the package can be loaded with stated dependencies ... OK ** checking whether the package can be unloaded cleanly ... OK ** checking whether the namespace can be loaded with stated dependencies ... OK ** checking whether the namespace can be unloaded cleanly ... OK ** checking loading without being on the library search path ... OK ** checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [7s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking compiled code ... OK * checking examples ... ** running examples for arch 'i386' ... [3s] OK ** running examples for arch 'x64' ... [3s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... ** running tests for arch 'i386' ... [7s] ERROR Running 'valued_fit.R' [6s] Running the tests in 'tests/valued_fit.R' failed. Complete output: > # File tests/valued_fit.R in package ergm.count, part of the Statnet suite > # of packages for network analysis, http://statnet.org . > # > # This software is distributed under the GPL-3 license. It is free, > # open source, and has the attribution requirements (GPL Section 7) at > # http://statnet.org/attribution > # > # Copyright 2008-2018 Statnet Commons > ####################################################################### > library(ergm.count) Loading required package: statnet.common Attaching package: 'statnet.common' The following object is masked from 'package:base': order Loading required package: ergm Loading required package: network network: Classes for Relational Data Version 1.15 created on 2019-04-01. copyright (c) 2005, Carter T. Butts, University of California-Irvine Mark S. Handcock, University of California -- Los Angeles David R. Hunter, Penn State University Martina Morris, University of Washington Skye Bender-deMoll, University of Washington For citation information, type citation("network"). Type help("network-package") to get started. ergm: version 3.9.4, created on 2018-08-15 Copyright (c) 2018, Mark S. Handcock, University of California -- Los Angeles David R. Hunter, Penn State University Carter T. Butts, University of California -- Irvine Steven M. Goodreau, University of Washington Pavel N. Krivitsky, University of Wollongong Martina Morris, University of Washington with contributions from Li Wang Kirk Li, University of Washington Skye Bender-deMoll, University of Washington Based on "statnet" project software (statnet.org). For license and citation information see statnet.org/attribution or type citation("ergm"). NOTE: Versions before 3.6.1 had a bug in the implementation of the bd() constriant which distorted the sampled distribution somewhat. In addition, Sampson's Monks datasets had mislabeled vertices. See the NEWS and the documentation for more details. Attaching package: 'ergm' The following objects are masked from 'package:statnet.common': colMeans.mcmc.list, sweep.mcmc.list ergm.count: version 3.3.0, created on 2018-08-25 Copyright (c) 2018, Pavel N. Krivitsky, University of Wollongong with contributions from Mark S. Handcock, University of California -- Los Angeles David R. Hunter, Penn State University Based on "statnet" project software (statnet.org). For license and citation information see statnet.org/attribution or type citation("ergm.count"). NOTE: The form of the term 'CMP' has been changed in version 3.2 of 'ergm.count'. See the news or help('CMP') for more information. > set.seed(0) > > ## Poisson-reference ERGM > > n <- 5 > > m <- matrix(rpois(n^2,2),n,n) > diag(m) <- 0 > y <- as.network(m, matrix.type="a", directed=TRUE, ignore.eval=FALSE, names.eval="w") > > truth <- log(sum(m)/n/(n-1)) > diag(m) <- NA > > efit <- ergm(y ~ sum, response="w", reference=~Poisson, verbose=TRUE, control=control.ergm(MCMLE.effectiveSize=128)) Evaluating network in model. Initializing Metropolis-Hastings proposal(s): ergm.count:MH_PoissonTNT Initializing model. Using initial method 'CD'. Fitting initial model. Starting contrastive divergence estimation via CD-MCMLE: Iteration 1 of at most 60 with parameter: sum 0 Sampler accepted 68.518% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum -0.2275391 Convergence test P-value:2e-02 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.002669 Iteration 2 of at most 60 with parameter: sum 0.02348984 Sampler accepted 68.982% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.3369141 Convergence test P-value:4.3e-04 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.006127 Iteration 3 of at most 60 with parameter: sum -0.01296802 Sampler accepted 70.129% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.53125 Convergence test P-value:5e-08 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.01473 Iteration 4 of at most 60 with parameter: sum -0.06840481 Sampler accepted 70.020% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.2861328 Convergence test P-value:4.1e-03 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.004036 Iteration 5 of at most 60 with parameter: sum -0.09654827 Sampler accepted 70.593% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.3779297 Convergence test P-value:1.1e-04 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.007285 Iteration 6 of at most 60 with parameter: sum -0.1349567 Sampler accepted 67.407% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum -0.546875 Convergence test P-value:3.3e-08 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.01517 Iteration 7 of at most 60 with parameter: sum -0.07941636 Sampler accepted 70.728% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.1630859 Convergence test P-value:9.2e-02 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.001389 Iteration 8 of at most 60 with parameter: sum -0.09643703 Sampler accepted 69.470% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.07421875 Convergence test P-value:4.6e-01 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.0002628 Iteration 9 of at most 60 with parameter: sum -0.1035182 Sampler accepted 70.703% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum -0.02441406 Convergence test P-value:8e-01 Convergence detected. Stopping. Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by < 0.0001 Starting Monte Carlo maximum likelihood estimation (MCMLE): Density guard set to 10000 from an initial count of 19 edges. Iteration 1 of at most 20 with parameter: sum -0.1010662 Starting unconstrained MCMC... Error in NextMethod("[") : argument is missing, with no default Calls: ergm ... FUN -> lapply -> lapply -> FUN -> [.mcmc -> NextMethod Execution halted ** running tests for arch 'x64' ... [7s] ERROR Running 'valued_fit.R' [7s] Running the tests in 'tests/valued_fit.R' failed. Complete output: > # File tests/valued_fit.R in package ergm.count, part of the Statnet suite > # of packages for network analysis, http://statnet.org . > # > # This software is distributed under the GPL-3 license. It is free, > # open source, and has the attribution requirements (GPL Section 7) at > # http://statnet.org/attribution > # > # Copyright 2008-2018 Statnet Commons > ####################################################################### > library(ergm.count) Loading required package: statnet.common Attaching package: 'statnet.common' The following object is masked from 'package:base': order Loading required package: ergm Loading required package: network network: Classes for Relational Data Version 1.15 created on 2019-04-01. copyright (c) 2005, Carter T. Butts, University of California-Irvine Mark S. Handcock, University of California -- Los Angeles David R. Hunter, Penn State University Martina Morris, University of Washington Skye Bender-deMoll, University of Washington For citation information, type citation("network"). Type help("network-package") to get started. ergm: version 3.9.4, created on 2018-08-15 Copyright (c) 2018, Mark S. Handcock, University of California -- Los Angeles David R. Hunter, Penn State University Carter T. Butts, University of California -- Irvine Steven M. Goodreau, University of Washington Pavel N. Krivitsky, University of Wollongong Martina Morris, University of Washington with contributions from Li Wang Kirk Li, University of Washington Skye Bender-deMoll, University of Washington Based on "statnet" project software (statnet.org). For license and citation information see statnet.org/attribution or type citation("ergm"). NOTE: Versions before 3.6.1 had a bug in the implementation of the bd() constriant which distorted the sampled distribution somewhat. In addition, Sampson's Monks datasets had mislabeled vertices. See the NEWS and the documentation for more details. Attaching package: 'ergm' The following objects are masked from 'package:statnet.common': colMeans.mcmc.list, sweep.mcmc.list ergm.count: version 3.3.0, created on 2018-08-25 Copyright (c) 2018, Pavel N. Krivitsky, University of Wollongong with contributions from Mark S. Handcock, University of California -- Los Angeles David R. Hunter, Penn State University Based on "statnet" project software (statnet.org). For license and citation information see statnet.org/attribution or type citation("ergm.count"). NOTE: The form of the term 'CMP' has been changed in version 3.2 of 'ergm.count'. See the news or help('CMP') for more information. > set.seed(0) > > ## Poisson-reference ERGM > > n <- 5 > > m <- matrix(rpois(n^2,2),n,n) > diag(m) <- 0 > y <- as.network(m, matrix.type="a", directed=TRUE, ignore.eval=FALSE, names.eval="w") > > truth <- log(sum(m)/n/(n-1)) > diag(m) <- NA > > efit <- ergm(y ~ sum, response="w", reference=~Poisson, verbose=TRUE, control=control.ergm(MCMLE.effectiveSize=128)) Evaluating network in model. Initializing Metropolis-Hastings proposal(s): ergm.count:MH_PoissonTNT Initializing model. Using initial method 'CD'. Fitting initial model. Starting contrastive divergence estimation via CD-MCMLE: Iteration 1 of at most 60 with parameter: sum 0 Sampler accepted 68.518% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum -0.2275391 Convergence test P-value:2e-02 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.002669 Iteration 2 of at most 60 with parameter: sum 0.02348984 Sampler accepted 68.982% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.3369141 Convergence test P-value:4.3e-04 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.006127 Iteration 3 of at most 60 with parameter: sum -0.01296802 Sampler accepted 70.129% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.53125 Convergence test P-value:5e-08 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.01473 Iteration 4 of at most 60 with parameter: sum -0.06840481 Sampler accepted 70.020% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.2861328 Convergence test P-value:4.1e-03 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.004036 Iteration 5 of at most 60 with parameter: sum -0.09654827 Sampler accepted 70.593% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.3779297 Convergence test P-value:1.1e-04 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.007285 Iteration 6 of at most 60 with parameter: sum -0.1349567 Sampler accepted 67.407% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum -0.546875 Convergence test P-value:3.3e-08 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.01517 Iteration 7 of at most 60 with parameter: sum -0.07941636 Sampler accepted 70.728% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.1630859 Convergence test P-value:9.2e-02 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.001389 Iteration 8 of at most 60 with parameter: sum -0.09643703 Sampler accepted 69.470% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum 0.07421875 Convergence test P-value:4.6e-01 Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by 0.0002628 Iteration 9 of at most 60 with parameter: sum -0.1035182 Sampler accepted 70.703% of 8192 proposed steps. Sample size = 1024 by 1024. Back from unconstrained CD. Average estimating function values: sum -0.02441406 Convergence test P-value:8e-01 Convergence detected. Stopping. Calling CD-MCMLE Optimization... Using Newton-Raphson Step with step length 1 ... Using naive metric (see control.ergm function). Optimizing loglikelihood The log-likelihood improved by < 0.0001 Starting Monte Carlo maximum likelihood estimation (MCMLE): Density guard set to 10000 from an initial count of 19 edges. Iteration 1 of at most 20 with parameter: sum -0.1010662 Starting unconstrained MCMC... Error in NextMethod("[") : argument is missing, with no default Calls: ergm ... FUN -> lapply -> lapply -> FUN -> [.mcmc -> NextMethod Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs