{% set version = "4.2.2" %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-ergm
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/ergm_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/ergm/ergm_{{ version }}.tar.gz
  sha256: ced92b0a32c78c85546d665c32fb3993fe77a3809aa88f43c3eee39e2577f2f0

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
  host:
    - r-base
    - r-mass >=7.3.53.1
    - r-matrix >=1.3.2
    - r-coda >=0.19.4
    - r-digest
    - r-knitr
    - r-lpsolveapi >=5.5.2.0.17.7
    - r-magrittr >=2.0.1
    - r-memoise >=2.0.0
    - r-network >=1.17.0
    - r-purrr >=0.3.4
    - r-rlang >=0.4.10
    - r-rle >=0.9.2
    - r-robustbase >=0.93.7
    - r-statnet.common >=4.6.0
    - r-stringr
    - r-tibble >=3.1.0
    - r-trust >=0.1.8
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-mass >=7.3.53.1
    - r-matrix >=1.3.2
    - r-coda >=0.19.4
    - r-digest
    - r-knitr
    - r-lpsolveapi >=5.5.2.0.17.7
    - r-magrittr >=2.0.1
    - r-memoise >=2.0.0
    - r-network >=1.17.0
    - r-purrr >=0.3.4
    - r-rlang >=0.4.10
    - r-rle >=0.9.2
    - r-robustbase >=0.93.7
    - r-statnet.common >=4.6.0
    - r-stringr
    - r-tibble >=3.1.0
    - r-trust >=0.1.8

test:
  commands:
    - $R -e "library('ergm')"           # [not win]
    - "\"%R%\" -e \"library('ergm')\""  # [win]

about:
  home: https://statnet.org
  license: GPL-3.0-only
  summary: An integrated set of tools to analyze and simulate networks based on exponential-family random graph models (ERGMs). 'ergm' is a part of the Statnet suite of packages for network analysis.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - stevierene82

# Package: ergm
# Version: 3.10.4
# Date: 2019-06-10
# Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
# Authors@R: c( person("Mark S.", "Handcock", role=c("aut"), email="handcock@stat.ucla.edu"), person("David R.", "Hunter", role=c("aut"), email="dhunter@stat.psu.edu"), person("Carter T.", "Butts", role=c("aut"), email="buttsc@uci.edu"), person("Steven M.", "Goodreau", role=c("aut"), email="goodreau@u.washington.edu"), person("Pavel N.", "Krivitsky", role=c("aut","cre"), email="pavel@uow.edu.au", comment=c(ORCID="0000-0002-9101-3362")), person("Martina", "Morris", role=c("aut"), email="morrism@u.washington.edu"), person("Li","Wang",role=c("ctb"),email="lxwang@gmail.com"), person("Kirk","Li",role=c("ctb"),email="kirkli@u.washington.edu"), person("Skye", "Bender-deMoll", role=c("ctb"), email="skyebend@u.washington.edu"), person("Chad", "Klumb", role=c("ctb"), email="cklumb@gmail.com"))
# Depends: network (>= 1.15)
# Imports: robustbase (>= 0.93.5), coda (>= 0.19.2), trust (>= 0.1.7), Matrix (>= 1.2.17), lpSolve (>= 5.6.13), parallel, methods, MASS (>= 7.3.51.4), statnet.common (>= 4.3.0), purrr (>= 0.3.2), rlang (>= 0.3.4), tibble (>= 2.1.1), dplyr (>= 0.8.0.1)
# Suggests: lattice (>= 0.20.38), latticeExtra (>= 0.6.28), sna (>= 2.4), latentnet (>= 2.9.0), rmarkdown (>= 1.12), knitr (>= 1.22), Rmpi (>= 0.6.9), testthat (>= 2.1.1), tergm, ergm.count, ergm.userterms, networkDynamic
# SystemRequirements: OpenMPI
# BugReports: https://github.com/statnet/ergm/issues
# Description: An integrated set of tools to analyze and simulate networks based on exponential-family random graph models (ERGMs). 'ergm' is a part of the Statnet suite of packages for network analysis.
# License: GPL-3 + file LICENSE
# URL: https://statnet.org
# VignetteBuilder: rmarkdown, knitr
# RoxygenNote: 6.1.1
# Encoding: UTF-8
# Collate: 'InitErgm.bipartite.R' 'InitErgmConstraint.R' 'InitErgmProposal.R' 'InitErgmProposal.blockdiag.R' 'InitErgmReference.R' 'ergm-deprecated.R' 'InitErgmTerm.R' 'InitErgmTerm.bipartite.degree.R' 'InitErgmTerm.coincidence.R' 'InitErgmTerm.dgw_sp.R' 'InitErgmTerm.extra.R' 'InitErgmTerm.indices.R' 'InitErgmTerm.test.R' 'InitErgmTerm.transitiveties.R' 'InitWtErgmProposal.R' 'InitWtErgmTerm.R' 'anova.ergm.R' 'anova.ergmlist.R' 'approx.hotelling.diff.test.R' 'as.network.numeric.R' 'build_term_index.R' 'check.ErgmTerm.R' 'control.ergm.R' 'control.ergm.bridge.R' 'control.gof.R' 'control.logLik.ergm.R' 'control.san.R' 'control.simulate.R' 'data.R' 'ergm-defunct.R' 'ergm-disambiguation.R' 'ergm.CD.fixed.R' 'ergm.Cprepare.R' 'ergm.MCMCse.R' 'ergm.MCMCse.lognormal.R' 'ergm.MCMLE.R' 'ergm.R' 'ergm.allstats.R' 'ergm.bounddeg.R' 'ergm.bridge.R' 'ergm.check.R' 'ergm.coefficient.degeneracy.R' 'ergm.curved.statsmatrix.R' 'ergm.degeneracy.R' 'ergm.design.R' 'ergm.errors.R' 'ergm.estimate.R' 'ergm.eta.R' 'ergm.etagrad.R' 'ergm.etagradmult.R' 'ergm.etamap.R' 'ergm.geodistn.R' 'ergm.getCDsample.R' 'ergm.getMCMCsample.R' 'ergm.getnetwork.R' 'ergm.initialfit.R' 'ergm.llik.R' 'ergm.llik.obs.R' 'ergm.logitreg.R' 'ergm.mapl.R' 'ergm.maple.R' 'ergm.mple.R' 'ergm.pen.glm.R' 'ergm.phase12.R' 'ergm.pl.R' 'ergm.reviseinit.R' 'ergm.robmon.R' 'ergm.san.R' 'ergm.stepping.R' 'ergm.stocapprox.R' 'ergm.sufftoprob.R' 'ergm.utility.R' 'ergmMPLE.R' 'ergm_estfun.R' 'ergm_model.R' 'ergm_model.utils.R' 'ergm_proposal.R' 'formula.utils.R' 'get.node.attr.R' 'godfather.R' 'gof.ergm.R' 'is.curved.R' 'is.durational.R' 'is.dyad.independent.R' 'is.inCH.R' 'locator.R' 'logLik.ergm.R' 'mcmc.diagnostics.ergm.R' 'network.list.R' 'network.update.R' 'nparam.R' 'parallel.utils.R' 'param_names.R' 'pending_update_network.R' 'print.ergm.R' 'print.network.list.R' 'print.summary.ergm.R' 'rlebdm.R' 'simulate.ergm.R' 'summary.ergm.R' 'summary.ergm_model.R' 'summary.network.list.R' 'summary.statistics.network.R' 'to_ergm_Cdouble.R' 'vcov.ergm.R' 'wtd.median.R' 'zzz.R'
# NeedsCompilation: yes
# Packaged: 2019-06-10 01:57:47 UTC; levap
# Author: Mark S. Handcock [aut], David R. Hunter [aut], Carter T. Butts [aut], Steven M. Goodreau [aut], Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Martina Morris [aut], Li Wang [ctb], Kirk Li [ctb], Skye Bender-deMoll [ctb], Chad Klumb [ctb]
# Maintainer: Pavel N. Krivitsky <pavel@uow.edu.au>
# Repository: CRAN
# Date/Publication: 2019-06-10 05:30:07 UTC
