Closed mbojan closed 2 years ago
Thanks! I think I fixed it in statnet/ergm@i427-gof-missing branch. Does it behave sensibly?
Hi Pavel --
I have just reinstalled ERGM, and ran a very simple model (only edges), and I still have the same error for GOF.
Could it be some other library that must be updated? Or perhaps my system? (it's running on a Windows 8).
If you want, I can send you the database.
best
Charles Kirschbaum Insper Instituto de Ensino e Pesquisa
De: Pavel N. Krivitsky @.> Enviado: quinta-feira, 13 de janeiro de 2022 12:05 Para: statnet/ergm @.> Cc: Charles Kirschbaum @.>; Mention @.> Assunto: Re: [statnet/ergm] gof() fails on a fit to network with missing edges (Issue #427)
Thanks! I think I fixed it in @.*** branch. Does it behave sensibly?
— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/1vcevNIkru81qsq8j5hybex7hvfBZh3I_tMjPOCQ5qKgwJwjGRV8gAFmFtJ35WA8A-FiQOIg8NBtn4TA0vs5pd83EdLOTLXpQtf5yIQyhDZfVkSk6533z6p9Z3di3f7RTNDQKZKSPC1oCpBpWEwAd3Oo-ddpUkPQ49KTp8lP_ISIvzbCiZF6FB8cFmvVnci7mHtCnrjZdTe_eBWqCS3tYGvC5MFcBTlEGucTI19F0lar7Q7vc-qmvUMGjACg950PS0ilecu1ZGJYoLDm432rPUZ0b8b8u6eoEgIpymn_YhP8ATeZjpuBrEQ7yRYBnnU1aW-ZwagAQZt7IOSCODSRJA38KwvwE0sHi1GUleRUbDbzEuaIYx7wKLIm1niBJ5fIlIW7GgtvffhEHz3_nz6Sx_4SYr_Ikbi_1WZ_r9FyGsVY/https%3A%2F%2Fgithub.com%2Fstatnet%2Fergm%2Fissues%2F427%23issuecomment-1011981725, or unsubscribehttps://secure-web.cisco.com/1AxZfQ4hghySJdQ6r0VoqYJdwuAgQybZE_aEr-9idPqpc5Murp8PU_tF-qosUx5bNqoZr_mGWCAC9-DK71b5-stIxG9eiWB_CServEhgjYgi78ouTrgv6fmzwE5PeSSNBLIduMtjPdy_H9-Qi9UhVqXzTXEVjJi0S3AywoeIUBYUQhVgZLMnqtTw3lMFSQ9UKNCLZXYdySg5ltCmBRSN_2Dj4GsMhqEVnIOkWAoUvAbG8ZVot-e3ibPs5I7uvD59g1rwA3PvbWamVTHK6AQUtVxhd4QeG0ejTKrvATXKXCS5q7Uimrqne63-hOTZrNipK19j9U3zuttVIaSRQAQw2_vMrrVoIvr5Il-_68S_FxMvs1BwMZ_h1fjp_b0QHEGTxQDLHuKadpOTKj2pk5_JzW3W_Dk3-_Qbai0bdlALQshk/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3OBJXJQODY4FGVSCTJWIDUV2PWTANCNFSM5L2MVTTQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>
@charlesk1 , the fix is not yet merged with master
. Make sure you install the package from the branch with:
remotes::install_github("statnet/ergm", ref="i427-gof-missing")
@charlesk1 , did the change work?
Hi Pavel,
I have tried right after you sent me the command line, and again today. But I think it didn't work. Please see the log below:
remotes::install_github("statnet/ergm", ref="i427-gof-missing") Downloading GitHub repo @.*** These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All 2: CRAN packages only 3: None 4: magrittr (2.0.1 -> 2.0.2) [CRAN] 5: glue (1.4.2 -> 1.6.1) [CRAN] 6: rlang (0.4.10 -> 1.0.0) [CRAN] 7: ellipsis (0.3.1 -> 0.3.2) [CRAN] 8: vctrs (0.3.7 -> 0.3.8) [CRAN] 9: utf8 (1.2.1 -> 1.2.2) [CRAN] 10: fansi (0.4.2 -> 1.0.2) [CRAN] 11: cli (3.1.0 -> 3.1.1) [CRAN] 12: pillar (1.6.4 -> 1.6.5) [CRAN] 13: yaml (2.2.1 -> 2.2.2) [CRAN] 14: tibble (3.1.1 -> 3.1.6) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 1 magrittr (2.0.1 -> 2.0.2) [CRAN] glue (1.4.2 -> 1.6.1) [CRAN] rlang (0.4.10 -> 1.0.0) [CRAN] ellipsis (0.3.1 -> 0.3.2) [CRAN] vctrs (0.3.7 -> 0.3.8) [CRAN] utf8 (1.2.1 -> 1.2.2) [CRAN] fansi (0.4.2 -> 1.0.2) [CRAN] cli (3.1.0 -> 3.1.1) [CRAN] pillar (1.6.4 -> 1.6.5) [CRAN] yaml (2.2.1 -> 2.2.2) [CRAN] tibble (3.1.1 -> 3.1.6) [CRAN] Installing 11 packages: magrittr, glue, rlang, ellipsis, vctrs, utf8, fansi, cli, pillar, yaml, tibble Installing packages into ‘C:/Users/Charles/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified)
There are binary versions available but the source versions are later: binary source needs_compilation magrittr 2.0.1 2.0.2 TRUE glue 1.6.0 1.6.1 TRUE rlang 0.4.12 1.0.0 TRUE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ellipsis_0.3.2.zip' Content type 'application/zip' length 49140 bytes (47 KB) downloaded 47 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.3.8.zip' Content type 'application/zip' length 1250263 bytes (1.2 MB) downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/utf8_1.2.2.zip' Content type 'application/zip' length 209855 bytes (204 KB) downloaded 204 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/fansi_1.0.2.zip' Content type 'application/zip' length 365237 bytes (356 KB) downloaded 356 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.1.1.zip' Content type 'application/zip' length 1237420 bytes (1.2 MB) downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pillar_1.6.5.zip' Content type 'application/zip' length 750553 bytes (732 KB) downloaded 732 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/yaml_2.2.2.zip' Content type 'application/zip' length 207984 bytes (203 KB) downloaded 203 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tibble_3.1.6.zip' Content type 'application/zip' length 872755 bytes (852 KB) downloaded 852 KB
package ‘ellipsis’ successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package ‘ellipsis’ Warning: restored ‘ellipsis’ package ‘vctrs’ successfully unpacked and MD5 sums checked package ‘utf8’ successfully unpacked and MD5 sums checked package ‘fansi’ successfully unpacked and MD5 sums checked package ‘cli’ successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package ‘cli’ Warning: restored ‘cli’ package ‘pillar’ successfully unpacked and MD5 sums checked package ‘yaml’ successfully unpacked and MD5 sums checked package ‘tibble’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\Charles\AppData\Local\Temp\RtmpkZccFf\downloaded_packages installing the source packages ‘magrittr’, ‘glue’, ‘rlang’
trying URL 'https://cran.rstudio.com/src/contrib/magrittr_2.0.2.tar.gz' Content type 'application/x-gzip' length 267039 bytes (260 KB) downloaded 260 KB
trying URL 'https://cran.rstudio.com/src/contrib/glue_1.6.1.tar.gz' Content type 'application/x-gzip' length 110723 bytes (108 KB) downloaded 108 KB
trying URL 'https://cran.rstudio.com/src/contrib/rlang_1.0.0.tar.gz' Content type 'application/x-gzip' length 707509 bytes (690 KB) downloaded 690 KB
*** arch - i386 "C:/rtools40/mingw32/bin/"gcc -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c glue.c -o glue.o "C:/rtools40/mingw32/bin/"gcc -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o "C:/rtools40/mingw32/bin/"gcc -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c trim.c -o trim.o C:/rtools40/mingw32/bin/gcc -shared -s -static-libgcc -o glue.dll tmp.def glue.o init.o trim.o -LC:/PROGRA~1/R/R-40~1.5/bin/i386 -lR installing to C:/Users/Charles/Documents/R/win-library/4.0/00LOCK-glue/00new/glue/libs/i386
arch - x64 "C:/rtools40/mingw64/bin/"gcc -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c glue.c -o glue.o "C:/rtools40/mingw64/bin/"gcc -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o "C:/rtools40/mingw64/bin/"gcc -I"C:/PROGRA~1/R/R-40~1.5/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c trim.c -o trim.o C:/rtools40/mingw64/bin/gcc -shared -s -static-libgcc -o glue.dll tmp.def glue.o init.o trim.o -LC:/PROGRA~1/R/R-40~1.5/bin/x64 -lR installing to C:/Users/Charles/Documents/R/win-library/4.0/00LOCK-glue/00new/glue/libs/x64 R inst byte-compile and prepare package for lazy loading help installing help indices converting help for package 'glue' finding HTML links ... done as_glue html glue-deprecated html glue html glue_col html glue_collapse html Rd warning: C:/Users/Charles/AppData/Local/Temp/Rtmpqoe5ip/R.INSTALL325c6f79cd5/glue/man/glue_collapse.Rd:16: file link 'NAcharacter' in package 'base' does not exist and so has been treated as a topic glue_safe html glue_sql html identity_transformer html quoting html trim html * copying figures building package indices installing vignettes * testing if installed package can be loaded from temporary location arch - i386 * arch - x64 * testing if installed package can be loaded from final location arch - i386 * arch - x64 testing if installed package keeps a record of temporary installation path
The downloaded source packages are in ‘C:\Users\Charles\AppData\Local\Temp\RtmpkZccFf\downloaded_packages’ √ checking for file 'C:\Users\Charles\AppData\Local\Temp\RtmpkZccFf\remotes1b2c4b0a3e07\statnet-ergm-7d4a692/DESCRIPTION' (625ms)
ERROR: package installation failed Error: Failed to install 'ergm' from GitHub: System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines): E> inst E> byte-compile and prepare package for lazy loading E> Error: package or namespace load failed for 'network' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): E> namespace 'ellipsis' 0.3.1 is being loaded, but >= 0.3.2 is required E> Error: package 'network' could not be loaded E> Execution halted E> ERROR: lazy loading failed for package 'ergm' E> * removing 'C:/Users/Charles/AppData/Local/Temp/RtmpszTPe2/Rinst58c43c75f68/ergm' E> ----------------------------------- E> ERROR: package installation failed In addition: Warning messages: 1: In untar2(tarfile, files, list, exdir) : skipping pax global extended headers 2: In untar2(tarfile, files, list, exdir) : skipping pax global extended headers 3: In file.copy(savedcopy, lib, recursive = TRUE) : problem copying C:\Users\Charles\Documents\R\win-library\4.0\00LOCK\ellipsis\libs\x64\ellipsis.dll to C:\Users\Charles\Documents\R\win-library\4.0\ellipsis\libs\x64\ellipsis.dll: Permission denied 4: In file.copy(savedcopy, lib, recursive = TRUE) : problem copying C:\Users\Charles\Documents\R\win-library\4.0\00LOCK\cli\libs\x64\cli.dll to C:\Users\Charles\Documents\R\win-library\4.0\cli\libs\x64\cli.dll: Permission denied 5: In i.p(...) : installation of package ‘magrittr’ had non-zero exit status 6: In i.p(...) : installation of package ‘rlang’ had non-zero exit status
Charles Kirschbaum Insper Instituto de Ensino e Pesquisa
De: Pavel N. Krivitsky @.> Enviado: terça-feira, 18 de janeiro de 2022 07:45 Para: statnet/ergm @.> Cc: Charles Kirschbaum @.>; Mention @.> Assunto: Re: [statnet/ergm] gof() fails on a fit to network with missing edges (Issue #427)
— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/1mj22ZL8o3CIDMoXn7xpPgdOdynR4JsHXOEbWhty4yGWxszYM5KZgoRSzh30q6lUilS0p4Aw3Rpxc9x-vyen35291A9QCOwfQkcBaCxjHQrqcLoxVFqgwMZ9KOQAWn870TYgaSBWJUwNWldaZj2DNb9TdBAAmF2PbnCCp4Ra1UUymWI210drCMN_PcTLyY5J2fVEIJ2bbOnMqodB2IF4-o5842ZCtce8r67c4TC-akdt911bR9hKyGR6zUYwfVgf67OOkBzAngqsOHtFXFqAzHuOLNT3p95BExKuJz86b-SJhT7wEMcus_mYjZSOGgguasTY_IZDstTZIORojUuN2PQtGXcuoL-hlXJfLUeFs9QgyuwJLTguegFR2607hrJP2QYiFD0XWaD_ZWVRHZX2if24UBwHH9i0nff-QTUkTG6k/https%3A%2F%2Fgithub.com%2Fstatnet%2Fergm%2Fissues%2F427%23issuecomment-1015089698, or unsubscribehttps://secure-web.cisco.com/1CvQ90ATU5wkykMeYjGnDNjMbzgo15E9F6xgzybYxyTDcNIhVgYMEIxQRMrF1K0Ve9OjoUaxTgbUVAvY-brLzcg6Sdu3EvT9uWdR_XcUZ-9UXH_hVwHEl28zmoXYRoW0YAoU39NC9Wppqz0TlVAK0HA3s_FMqIB1uX2TMCNVdZZDRXIt5cZGQqkAj8ee7DC0KXPYFBtTKSnfp1SGykXV1iLpaICHLPSwIcaf2T7JSnO0Am3vNimQRK4YK7m8SUPY45d2sQ-8WTWOTZDvF2sIyfpU5B-aplu4F8oJpMdgcbJuPr1pGQtlxTns_GpcBgkEzPFusd7-B_8lSatx3TCAXGUHsNj7s6yBQQlsXt4SZoZS0aJNe0W5MmO77Rni92XPXX8RE-eIe3Nh8qdV3lLuzjKRJahuDNw_EADIX0Klmj_E/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3OBJVSUE7Z3E5Q5ZL664TUWT47HANCNFSM5L2MVTTQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>
@charlesk1, I don't think this is ergm
-specific. Can you try updating all your packages before installing ergm
?
Hi Pavel --
What I did: I uninstalled R and RStudio. Then I reinstalled them again. Then I only installed statnet library. Following, I ran the command line. There was an error. Then I made sure to update any package. R suggested only glue , magrittr and rlang. I did it and ran again the command line, without success.
Remember that my Windows version is 8.1. I am not sure this is interferying.... This is the last log:
R version 4.1.2 (2021-11-01) -- "Bird Hippie" Copyright (C) 2021 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
[Workspace loaded from ~/.RData]
install.packages("statnet") 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/ Installing package into ‘C:/Users/Charles/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified) also installing the dependencies ‘fastmap’, ‘glue’, ‘cli’, ‘crayon’, ‘utf8’, ‘DEoptimR’, ‘cachem’, ‘ellipsis’, ‘fansi’, ‘lifecycle’, ‘pillar’, ‘pkgconfig’, ‘vctrs’, ‘robustbase’, ‘coda’, ‘purrr’, ‘trust’, ‘lpSolveAPI’, ‘rle’, ‘rlang’, ‘memoise’, ‘tibble’, ‘magrittr’, ‘tergm’, ‘ergm.count’, ‘sna’, ‘tsna’, ‘ergm’, ‘network’, ‘networkDynamic’, ‘statnet.common’
There are binary versions available but the source versions are later: binary source needs_compilation glue 1.6.0 1.6.1 TRUE rlang 0.4.12 1.0.0 TRUE magrittr 2.0.1 2.0.2 TRUE
Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/fastmap_1.1.0.zip' Content type 'application/zip' length 215473 bytes (210 KB) downloaded 210 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/glue_1.6.0.zip' Content type 'application/zip' length 173678 bytes (169 KB) downloaded 169 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/cli_3.1.1.zip' Content type 'application/zip' length 1236853 bytes (1.2 MB) downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/crayon_1.4.2.zip' Content type 'application/zip' length 157502 bytes (153 KB) downloaded 153 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/utf8_1.2.2.zip' Content type 'application/zip' length 210012 bytes (205 KB) downloaded 205 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/DEoptimR_1.0-10.zip' Content type 'application/zip' length 42751 bytes (41 KB) downloaded 41 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/cachem_1.0.6.zip' Content type 'application/zip' length 78984 bytes (77 KB) downloaded 77 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ellipsis_0.3.2.zip' Content type 'application/zip' length 49271 bytes (48 KB) downloaded 48 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/fansi_1.0.2.zip' Content type 'application/zip' length 365078 bytes (356 KB) downloaded 356 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/lifecycle_1.0.1.zip' Content type 'application/zip' length 123110 bytes (120 KB) downloaded 120 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/pillar_1.6.5.zip' Content type 'application/zip' length 750390 bytes (732 KB) downloaded 732 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/pkgconfig_2.0.3.zip' Content type 'application/zip' length 22493 bytes (21 KB) downloaded 21 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/vctrs_0.3.8.zip' Content type 'application/zip' length 1253103 bytes (1.2 MB) downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/robustbase_0.93-9.zip' Content type 'application/zip' length 3122514 bytes (3.0 MB) downloaded 3.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/coda_0.19-4.zip' Content type 'application/zip' length 323325 bytes (315 KB) downloaded 315 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/purrr_0.3.4.zip' Content type 'application/zip' length 429543 bytes (419 KB) downloaded 419 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/trust_0.1-8.zip' Content type 'application/zip' length 216375 bytes (211 KB) downloaded 211 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/lpSolveAPI_5.5.2.0-17.7.zip' Content type 'application/zip' length 917387 bytes (895 KB) downloaded 895 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rle_0.9.2.zip' Content type 'application/zip' length 66456 bytes (64 KB) downloaded 64 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rlang_0.4.12.zip' Content type 'application/zip' length 1199355 bytes (1.1 MB) downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/memoise_2.0.1.zip' Content type 'application/zip' length 50244 bytes (49 KB) downloaded 49 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/tibble_3.1.6.zip' Content type 'application/zip' length 871865 bytes (851 KB) downloaded 851 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/magrittr_2.0.1.zip' Content type 'application/zip' length 236164 bytes (230 KB) downloaded 230 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/tergm_4.0.2.zip' Content type 'application/zip' length 585102 bytes (571 KB) downloaded 571 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ergm.count_4.0.2.zip' Content type 'application/zip' length 1183242 bytes (1.1 MB) downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/sna_2.6.zip' Content type 'application/zip' length 1317499 bytes (1.3 MB) downloaded 1.3 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/tsna_0.3.5.zip' Content type 'application/zip' length 2083127 bytes (2.0 MB) downloaded 2.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ergm_4.1.2.zip' Content type 'application/zip' length 3447054 bytes (3.3 MB) downloaded 3.3 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/network_1.17.1.zip' Content type 'application/zip' length 852674 bytes (832 KB) downloaded 832 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/networkDynamic_0.11.0.zip' Content type 'application/zip' length 980351 bytes (957 KB) downloaded 957 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/statnet.common_4.5.0.zip' Content type 'application/zip' length 246728 bytes (240 KB) downloaded 240 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/statnet_2019.6.zip' Content type 'application/zip' length 27768 bytes (27 KB) downloaded 27 KB
package ‘fastmap’ successfully unpacked and MD5 sums checked package ‘glue’ successfully unpacked and MD5 sums checked package ‘cli’ successfully unpacked and MD5 sums checked package ‘crayon’ successfully unpacked and MD5 sums checked package ‘utf8’ successfully unpacked and MD5 sums checked package ‘DEoptimR’ successfully unpacked and MD5 sums checked package ‘cachem’ successfully unpacked and MD5 sums checked package ‘ellipsis’ successfully unpacked and MD5 sums checked package ‘fansi’ successfully unpacked and MD5 sums checked package ‘lifecycle’ successfully unpacked and MD5 sums checked package ‘pillar’ successfully unpacked and MD5 sums checked package ‘pkgconfig’ successfully unpacked and MD5 sums checked package ‘vctrs’ successfully unpacked and MD5 sums checked package ‘robustbase’ successfully unpacked and MD5 sums checked package ‘coda’ successfully unpacked and MD5 sums checked package ‘purrr’ successfully unpacked and MD5 sums checked package ‘trust’ successfully unpacked and MD5 sums checked package ‘lpSolveAPI’ successfully unpacked and MD5 sums checked package ‘rle’ successfully unpacked and MD5 sums checked package ‘rlang’ successfully unpacked and MD5 sums checked package ‘memoise’ successfully unpacked and MD5 sums checked package ‘tibble’ successfully unpacked and MD5 sums checked package ‘magrittr’ successfully unpacked and MD5 sums checked package ‘tergm’ successfully unpacked and MD5 sums checked package ‘ergm.count’ successfully unpacked and MD5 sums checked package ‘sna’ successfully unpacked and MD5 sums checked package ‘tsna’ successfully unpacked and MD5 sums checked package ‘ergm’ successfully unpacked and MD5 sums checked package ‘network’ successfully unpacked and MD5 sums checked package ‘networkDynamic’ successfully unpacked and MD5 sums checked package ‘statnet.common’ successfully unpacked and MD5 sums checked package ‘statnet’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\Charles\AppData\Local\Temp\RtmpQHhPjJ\downloaded_packages
remotes::install_github("statnet/ergm", ref="i427-gof-missing") Error in loadNamespace(x) : there is no package called ‘remotes’ install.packages("remotes") 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/ Installing package into ‘C:/Users/Charles/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/remotes_2.4.2.zip' Content type 'application/zip' length 399495 bytes (390 KB) downloaded 390 KB
package ‘remotes’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\Charles\AppData\Local\Temp\RtmpQHhPjJ\downloaded_packages
remotes::install_github("statnet/ergm", ref="i427-gof-missing") Downloading GitHub repo @.*** These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All 2: CRAN packages only 3: None 4: magrittr (2.0.1 -> 2.0.2) [CRAN] 5: glue (1.6.0 -> 1.6.1) [CRAN] 6: rlang (0.4.12 -> 1.0.0) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 0 Enter one or more numbers, or an empty line to skip updates: 1 stringi (NA -> 1.7.6) [CRAN] magrittr (2.0.1 -> 2.0.2) [CRAN] glue (1.6.0 -> 1.6.1) [CRAN] xfun (NA -> 0.29 ) [CRAN] rlang (0.4.12 -> 1.0.0) [CRAN] yaml (NA -> 2.2.2) [CRAN] stringr (NA -> 1.4.0) [CRAN] highr (NA -> 0.9 ) [CRAN] evaluate (NA -> 0.14 ) [CRAN] knitr (NA -> 1.37 ) [CRAN] Installing 10 packages: stringi, magrittr, glue, xfun, rlang, yaml, stringr, highr, evaluate, knitr Installing packages into ‘C:/Users/Charles/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified)
There are binary versions available but the source versions are later: binary source needs_compilation magrittr 2.0.1 2.0.2 TRUE glue 1.6.0 1.6.1 TRUE rlang 0.4.12 1.0.0 TRUE
Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/stringi_1.7.6.zip' Content type 'application/zip' length 16449819 bytes (15.7 MB) downloaded 15.7 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/magrittr_2.0.1.zip' Content type 'application/zip' length 236164 bytes (230 KB) downloaded 230 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/glue_1.6.0.zip' Content type 'application/zip' length 173678 bytes (169 KB) downloaded 169 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/xfun_0.29.zip' Content type 'application/zip' length 403861 bytes (394 KB) downloaded 394 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rlang_0.4.12.zip' Content type 'application/zip' length 1199355 bytes (1.1 MB) downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/yaml_2.2.2.zip' Content type 'application/zip' length 208028 bytes (203 KB) downloaded 203 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/stringr_1.4.0.zip' Content type 'application/zip' length 216727 bytes (211 KB) downloaded 211 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/highr_0.9.zip' Content type 'application/zip' length 46709 bytes (45 KB) downloaded 45 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/evaluate_0.14.zip' Content type 'application/zip' length 76843 bytes (75 KB) downloaded 75 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/knitr_1.37.zip' Content type 'application/zip' length 1472020 bytes (1.4 MB) downloaded 1.4 MB
package ‘stringi’ successfully unpacked and MD5 sums checked package ‘magrittr’ successfully unpacked and MD5 sums checked package ‘glue’ successfully unpacked and MD5 sums checked package ‘xfun’ successfully unpacked and MD5 sums checked package ‘rlang’ successfully unpacked and MD5 sums checked package ‘yaml’ successfully unpacked and MD5 sums checked package ‘stringr’ successfully unpacked and MD5 sums checked package ‘highr’ successfully unpacked and MD5 sums checked package ‘evaluate’ successfully unpacked and MD5 sums checked package ‘knitr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Charles\AppData\Local\Temp\RtmpQHhPjJ\downloaded_packages
Running R CMD build
...
ERROR: package installation failed STDOUT:
ERROR: package installation failed STDERR:
Error: Failed to install 'ergm' from GitHub:
Failed to R CMD build
package, try build = FALSE
.
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
3: In missing_devel_warning(pkgdir) :
Package ergm has compiled code, but no suitable compiler(s) were found. Installation will likely fail.
Install Rtools (https://cran.r-project.org/bin/windows/Rtools/).Then use the pkgbuild package, or make sure that Rtools in the PATH.
install.packages(c("glue", "magrittr", "rlang")) 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/ Installing packages into ‘C:/Users/Charles/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified)
There are binary versions available but the source versions are later: binary source needs_compilation glue 1.6.0 1.6.1 TRUE magrittr 2.0.1 2.0.2 TRUE rlang 0.4.12 1.0.0 TRUE
Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/glue_1.6.0.zip' Content type 'application/zip' length 173678 bytes (169 KB) downloaded 169 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/magrittr_2.0.1.zip' Content type 'application/zip' length 236164 bytes (230 KB) downloaded 230 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rlang_0.4.12.zip' Content type 'application/zip' length 1199355 bytes (1.1 MB) downloaded 1.1 MB
package ‘glue’ successfully unpacked and MD5 sums checked package ‘magrittr’ successfully unpacked and MD5 sums checked package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\Charles\AppData\Local\Temp\RtmpQHhPjJ\downloaded_packages
remotes::install_github("statnet/ergm", ref="i427-gof-missing") Downloading GitHub repo @.*** These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?
1: All 2: CRAN packages only 3: None 4: magrittr (2.0.1 -> 2.0.2) [CRAN] 5: glue (1.6.0 -> 1.6.1) [CRAN] 6: rlang (0.4.12 -> 1.0.0) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 1 magrittr (2.0.1 -> 2.0.2) [CRAN] glue (1.6.0 -> 1.6.1) [CRAN] rlang (0.4.12 -> 1.0.0) [CRAN] Installing 3 packages: magrittr, glue, rlang Installing packages into ‘C:/Users/Charles/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified)
There are binary versions available but the source versions are later: binary source needs_compilation magrittr 2.0.1 2.0.2 TRUE glue 1.6.0 1.6.1 TRUE rlang 0.4.12 1.0.0 TRUE
Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/magrittr_2.0.1.zip' Content type 'application/zip' length 236164 bytes (230 KB) downloaded 230 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/glue_1.6.0.zip' Content type 'application/zip' length 173678 bytes (169 KB) downloaded 169 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rlang_0.4.12.zip' Content type 'application/zip' length 1199355 bytes (1.1 MB) downloaded 1.1 MB
package ‘magrittr’ successfully unpacked and MD5 sums checked package ‘glue’ successfully unpacked and MD5 sums checked package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Charles\AppData\Local\Temp\RtmpQHhPjJ\downloaded_packages
Running R CMD build
...
ERROR: package installation failed STDOUT:
ERROR: package installation failed STDERR:
Error: Failed to install 'ergm' from GitHub:
Failed to R CMD build
package, try build = FALSE
.
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
3: In missing_devel_warning(pkgdir) :
Package ergm has compiled code, but no suitable compiler(s) were found. Installation will likely fail.
Install Rtools (https://cran.r-project.org/bin/windows/Rtools/).Then use the pkgbuild package, or make sure that Rtools in the PATH.
Charles Kirschbaum Insper Instituto de Ensino e Pesquisa
De: Michał Bojanowski @.> Enviado: quinta-feira, 13 de janeiro de 2022 15:50 Para: statnet/ergm @.> Cc: Charles Kirschbaum @.>; Mention @.> Assunto: Re: [statnet/ergm] gof() fails on a fit to network with missing edges (Issue #427)
@charlesk1https://secure-web.cisco.com/13GECOjjFJ_R5LIVpEzoNrCdJhMgTO3zp4WNueEW4Y7MuWRcOjXkWuEFt8Ou1DdSEXvo_z23owr9YQ0laE8GfzJiLZ5gcjyafV_a8HepXbRvNi1YcIiGKn_1UXSQ6Lw_cV3Zk6Ol1FUBtFpphHQOp9sv1NTJbS8HsGzOauHqx3t_DgxVe5wKJDKKM2NSirhwd4yRZXz3fw46Mc_atRFqs-IbE__krITUo28OybmHIDZbQoSljGI5fSLLPVrfTEpWnx89yg-MrqqCk9YbHE2jjXSf_PJzR7J4Ld9LuIc76MWnZYhXmYePSC_0CkDBvtreb-gYTiWV7mnQQ4rxOFq22-YGEPrR-X-q1QAcTQOE-dnI53iX3m4YLqLpF4JssA5D3AwLj4kDwRmhvdZn4Ovh-8X8yVnk_X2sdczgl2CeR53E/https%3A%2F%2Fgithub.com%2Fcharlesk1 , the fix is not yet merged with master. Make sure you install the package from the branch with:
remotes::install_github("statnet/ergm", ref="i427-gof-missing")
— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/10ND7PJ5XwLHpE6ph1OqGITh7-xD2-AD1q8UixJpoFH-sxG4FkdpdhxVQGraK2EUHvgifB-iB4_UvFjq7dbiwfUo0W_vdwrFWYT0D-LmmaDaFTSFT_WJQJOTa8gs2qP8HdGb2n_UgqtRvLwv4NjsPzyIdS3qWQ3wROds1lsqygDv1jzRYCPIrpSvEvexw6CfMD1P5ZPTSWb7tMZAdRKaTPajVvArfv5QNRLz5MMIrkHK9dOsWZOlQwJ9DyQouAppCvxlywlV_KBtIAjABhg2F4vXQFNiCpvmXexBCqRL7MBb5niDUAim2wNU6EnVw7m2lW1_sMrhfFsoOQzVKX8D169UlTAEdjzX9ZwGi5U0ayVv2rH0UYjeHsEjjAtQbt7_B4wIWpiD-R2phpyo9OELVt_G0r8bN2JmPt6dvi9smei0/https%3A%2F%2Fgithub.com%2Fstatnet%2Fergm%2Fissues%2F427%23issuecomment-1012154194, or unsubscribehttps://secure-web.cisco.com/112ij1N4lT0WM-ZrNLpilpDfRcPhBjVU2WP9ZFjjafD8IVArDDWuHKZTz133Z-t2O6_9SM8UYu7avzwTcJErwkFXn0oKBG7IrTnjg29KN4t0ZD00F3sT68kY8Fs38qbrbldx5wcXrMw3NNhAZQ6nqPuTuOpsfM5ILPoKb7wY7nGPwIlEo5sRfsj7iBHKtWBIZV4g6cNOQr2At-jXl_Teixkj1nluDbf_uDYmulHPih4wAD8Uo0Q9MjgwemKkJxEsj7RJh1VyjtXOITsDtLBwaCzXmi6g9LSqHumeXiwZk5uT0Dlu8kqBDyu3aO01hhC3N66CNwiwVr_vsjibCKyDemeyzZclHYNTsTH1gu_I1X_IB7I5loIW4kP7qKHj6zWpadSdIIIsjOa4gizHXXs5VguavVBouUzPa9UEjVteh1Fg/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3OBJVW45VCFTEW4WXLVFTUV3KCJANCNFSM5L2MVTTQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>
@charlesk1 , as Pavel @krivit noticed, it seems you need to first straighten out your R and RStudio installation. If you encounter problems it is best for you to seek support on Rhelp mailing list or stackoverflow. Once these are out of the way install the development version of ergm
with
remotes::install_github("statnet/ergm", ref = "i427-gof-missing")
and see if your gof()
problem persists. If it does, we will be able to help you with that.
Will do. Probably I will have to do a sequence of changes, from updating Windows to everything else. I'll keep you on the loop on how this advances.
best
Charles Kirschbaum Insper Instituto de Ensino e Pesquisa
De: Michał Bojanowski @.> Enviado: domingo, 30 de janeiro de 2022 18:50 Para: statnet/ergm @.> Cc: Charles Kirschbaum @.>; Mention @.> Assunto: Re: [statnet/ergm] gof() fails on a fit to network with missing edges (Issue #427)
@charlesk1https://secure-web.cisco.com/1VMvLAawiHygdX2tmOUCU8SmuGBTCIhmd-jt1vESQfWqIeM_nNy-DGiIuEcGP-o-fq876SeqzPH4se34l4hGpzfhSYMm5cuZ0j3KRiWlGiylYMTu-dpN3vEWMYKYFJrwhT4Z69kN6VR6wX6tCX2bL-uISi_W1liQ18tiwHFNbIwitDhzmZAFrPSOpQNjhC8X1OYmyCwxVP4zf5rM7aE--1i4BfERrst9D0TdYv8lmcV0HNJhXuoM8bFTqtAQGFbEZYU_Mcj7_ixYhceXx3Nqe0XlSQo0FdfXa5WgO0eY6qNa4M1qJp74u_rUGFpss1oQM8X8P8GbkXdCI-Gw5DQVPwyBCRv1xX3vvjP68MuCeVHJiN8e_Janrlpvl5rAY9F-mD-nJISRc1RbqUseVTVqKrLl_9CUvMmz2hZy5E3UzEKE/https%3A%2F%2Fgithub.com%2Fcharlesk1 , as Pavel @krivithttps://secure-web.cisco.com/1TkV3J2LpJcCwwDcth0vxnnbKpuY0sAOycrmsQhWUGiaeyNbh6x3r3XdRdR2R1pHMrKdkIGelC2j9qtMHhFqqrdljq6W1MMdy7XyjdtRO3d4kBLLlpXh0PgQ9QFr7jimVfvgkfH5DytKFXpBjKMg2HHIhmUoygoJSpc_EXNBzcvUcDopDy6dkz828tGWsWMJwvDekmsunFyMwIm0BKCm4enyynmM7s0QZI-mXSy6GWsAq5aJqcF1_g5AAUZz21SJKvvZVTnmZFNaFXvukzINC3KcC8r_BBcMEioVL74l0jdB26zPV8bJh3KFz6Jt-BcAS86GW7UISIzZJhtzr_TmWx31RYj6tUvLZIN2NVUNQYfX8ncyY1aSjvmwRQLqovdGgIi_qXJHCxYpcbzAXoe-zBjLH8ZZQ9A6_h4qQdqH_QSE/https%3A%2F%2Fgithub.com%2Fkrivit noticed, it seems you need to first straighten out your R and RStudio installation. If you encounter problems it is best for you to seek support on Rhelp mailing list or stackoverflow. Once these are out of the way install the development version of ergm with
remotes::install_github("statnet/ergm", ref = "i427-gof-missing")
and see if your gof() problem persist. We will be able to help you with that.
— Reply to this email directly, view it on GitHubhttps://secure-web.cisco.com/1UEMnLVqZzrY-dzI2rDLHH3sls-ZC0r9PM5CM3esjInqSZFOArRYwbOHXnO_Jx_QlmjEWj6aXF8qNDGrp-OB6UDBI6alfsWT0ajwfG2-kJ5m6aDLQf9IVNckXIFw-Q7Z3dUihaud3Jvfwu5q8-GuFBoLSD07PZHE04KSfYVddNZAufwXsVgaZgpNTDatfx87JCeQGmWdEMvW9bq4jKfZJ7lHUbeCa1RzjIT98dnZhBrBy9zB6YEhZx0y15vaQbBy03EpQf-sujv6RrePbH20tjuybs-uLmlZUStkNcDEotvO-TiK6Gug2lKpMD8PZBg2moTVClZ3IycUsVjkPCaIMtPD3CyvueqkUni1v3qReCBOo89Xp-yS-Qb4KInzKRofVJ5NERjI84eELIvcogHnYqOUHDfjFg5Ng9XNz9I-oeP4/https%3A%2F%2Fgithub.com%2Fstatnet%2Fergm%2Fissues%2F427%23issuecomment-1025183144, or unsubscribehttps://secure-web.cisco.com/1d73Uwr8oRHHSEPVXi6D8a9mSK-_2z0j91tPOvs3EYXSeDZbk_F772m6nOQ4eH6jr9uiip0DfS_b5D3d5d3QP7LZL6A_yuAw8DOY0QiECD3KIB2oWzWeRo5KS69_P8_598kYGTiPIjUjkK03SbCLsuq-rqpppcBNY7mq3j_1nF3i7Gj4_MUxxkve4zTRhEGvvZfiZkUJav-wOh8w2MiE6jelIyYwE0d669cIDHwg6AdgTVRIBaWrQFpdp-AGxk0cOl709aNNsmXSOuSv9vC8VwxxIH4KT0C4HIJy4RTqN8MpOQ0Qu8rhOWGAGED6nhjRGV6rPE2U6zZFGGWZ4kvLkegnvi7wWOhm4usLoeFmX3wT1V5Yt0OEk_OFiH6BYUgsUNoga7jqW24t7MRSxcKuUTRu5JuldM2PfRysN4KXonxc/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3OBJTRHEZNXFIEPND243LUYVT3ZANCNFSM5L2MVTTQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>
I encountered the same issue, I fitted an ERGM model and tried to apply gof
function. You can reproduce the issue with the below code snippet with the help of the attached and zipped RData file.
load("ergm_result.RData")
ergm1_gof <- gof(friend_ergm_1)
@hasansalimkanmaz , thanks! I was waiting for @charlesk1 to confirm the fix, but I went ahead and merged anyway.
Thanks @krivit for your rapid action
with
The problem seems to be with the
if
inhttps://github.com/statnet/ergm/blob/7f8cb111492ec46f03abfb8efe8a57e0c9e1cfaf/R/gof.ergm.R#L293-L294
as there is no
obs
available for theelse
expression.PS. This is a minimal reprex based on a statnet_help report by Charles Kirschbaum (@charlesk1).