[statnet_help] ERGM error

Michał Bojanowski michal2992 at gmail.com
Fri Oct 27 04:12:56 PDT 2023


Dear Aditya,

Yeah, running old versions of the Statnet in an even older version of
R might be tricky... It's strange that suddenly stopped working
though, given that you managed the environment with 'renv'. You must
have updated something, right?

It was all already some time but I believe the issues might be related
to the rle functionality which for the moment was part of
statnet.common (or ergm) and was later externalized to a separate
package 'rle'.

I'm glad that all worked-out in the end.

Best,
Michal

On Thu, Oct 26, 2023 at 5:43 PM Aditya Khanna <aditya_khanna at brown.edu> wrote:

>

> Hi All,

>

> I created the environment again with a fresh install of the package versions I am using. The flomarriage example and my own code are both working now.

> Aditya

>

> On Oct 25, 2023, at 4:06 PM, Khanna, Aditya <aditya_khanna at brown.edu> wrote:

>

> Hello Statnet Dev Team and All,

>

> I have some code for an ERGM that I developed in v 3.10.4 (and R 3.6.0). I didn't upgrade it to the latest ERGM because it had a custom term and used a very large underlying dataset. Until recently, the code and the environment both worked just fine, I periodically re-ran the code on new data as updates were needed.

>

> Today I tried to run the code again, but it, and simpler versions of the ERGM (i.e., a model as simple as just including the edges term), but all failed. I then tried running a standard tutorial example, and it produces the same error:

>

> > data(florentine)

> > summary(flomarriage ~ edges)

> edges

> 20

> > ergm(formula = flomarriage ~ edges)

> Error in rep(rle(v), r, scale = "run") : invalid 'times' argument

> >

>

> I have been managing the project using renv, so I don't know what underlying thing might have changed.I would be grateful for any thoughts on how to debug this. The sessionInfo() is included below.

> Aditya

>

> > sessionInfo()

> R version 3.6.0 (2019-04-26)

> Platform: x86_64-pc-linux-gnu (64-bit)

> Running under: Red Hat Enterprise Linux Server 7.9 (Maipo)

>

> Matrix products: default

> BLAS/LAPACK: /oscar/rt/7.2/opt/intel/2017.0/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64_lin/libmkl_gf_lp64.so

>

> locale:

> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C

> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8

> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8

> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C

> [9] LC_ADDRESS=C LC_TELEPHONE=C

> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

>

> attached base packages:

> [1] stats graphics grDevices datasets utils methods base

>

> other attached packages:

> [1] here_1.0.1 ergm.userterms_3.1.1 statnet.common_4.7.0

> [4] dplyr_1.1.0 ergm_3.10.4 network_1.18.1

>

> loaded via a namespace (and not attached):

> [1] magrittr_2.0.3 MASS_7.3-51.4 tidyselect_1.2.0 lattice_0.20-38

> [5] R6_2.5.1 rlang_1.1.1 fansi_1.0.4 tools_3.6.0

> [9] parallel_3.6.0 grid_3.6.0 lpSolve_5.6.18 utf8_1.2.3

> [13] cli_3.6.0 coda_0.19-4 withr_2.5.0 rprojroot_2.0.3

> [17] tibble_3.1.8 lifecycle_1.0.3 Matrix_1.2-17 purrr_1.0.1

> [21] vctrs_0.5.2 trust_0.1-8 robustbase_0.95-0 glue_1.6.2

> [25] DEoptimR_1.0-11 compiler_3.6.0 pillar_1.8.1 generics_0.1.3

> [29] jsonlite_1.8.7 renv_1.0.0 pkgconfig_2.0.3

> >

>

>

> _______________________________________________

> statnet_help mailing list

> statnet_help at u.washington.edu

> http://mailman13.u.washington.edu/mailman/listinfo/statnet_help




More information about the statnet_help mailing list