Hello everyone,
while using the latentnet package I got that RStudio was stuck when I asked for performing the computations using multiple cores on my laptop. Looking inside the package I noticed that it relies on the snowFT package to perform parallel computing, which apparently is the origin of the problem. Here is a reprex:
library(latentnet)
#> Loading required package: statnet.common
#>
#> Attaching package: 'statnet.common'
#> The following object is masked from 'package:base':
#>
#> order
#> Loading required package: network
#> network: Classes for Relational Data
#> Version 1.13.0.1 created on 2015-08-31.
#> 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.
#> Loading required package: ergm
#>
#> 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
#>
#> latentnet: version 2.9.0, created on 2018-08-25
#> Copyright (c) 2018, Pavel N. Krivitsky, University of Wollongong
#> Mark S. Handcock, University of California -- Los Angeles
#> with contributions from
#> Susan M. Shortreed
#> Jeremy Tantrum
#> Peter D. Hoff
#> Li Wang
#> Kirk Li, University of Washington
#> Jake Fisher
#> Jordan T. Bates
#> Based on "statnet" project software (statnet.org).
#> For license and citation information see statnet.org/attribution
#> or type citation("latentnet").
#> NOTE: BIC calculation prior to latentnet 2.7.0 had a bug in the calculation of the effective number of parameters. See help(summary.ergmm) for details.
#> NOTE: Prior to version 2.8.0, handling of fixed effects for directed networks had a bug. See help("ergmm-terms") for details.
data(sampson)
control <- control.ergmm()
control[["threads"]] <- 2
samp.fit <- ergmm(samplike ~ euclidean(d = 2), control = control)
Created on 2019-02-22 by the reprex package (v0.2.1)
Running this code interactively causes RStudio stop working, while running it in a standard R console provides the correct results.
Is there anybody that has a clue about that?
My info:
sessionInfo()
#> R version 3.5.2 (2018-12-20)
#> Platform: x86_64-apple-darwin15.6.0 (64-bit)
#> Running under: macOS High Sierra 10.13.6
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] compiler_3.5.2 magrittr_1.5 tools_3.5.2 htmltools_0.3.6
#> [5] yaml_2.2.0 Rcpp_1.0.0 stringi_1.3.1 rmarkdown_1.11
#> [9] highr_0.7 knitr_1.21 stringr_1.4.0 xfun_0.4
#> [13] digest_0.6.18 evaluate_0.13
Created on 2019-02-22 by the reprex package (v0.2.1)
My RStudio version is 1.2.1114.
Thanks in advance for any help!