{% set version = '0.2.0' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/missSBM_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/missSBM/missSBM_{{ version }}.tar.gz
  sha256: 269f023089d73086fbea848b111553a4ccfaa57a23267ab80cb761f0fff55f53

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: aricode, blockmodels, testthat, covr, knitr, rmarkdown, ggplot2
requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}sed               # [win]
    - {{posix}}grep              # [win]
    - {{posix}}autoconf
    - {{posix}}automake          # [not win]
    - {{posix}}automake-wrapper  # [win]
    - {{posix}}pkg-config
    - {{posix}}make
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-r6
    - r-rcpp
    - r-rcpparmadillo
    - r-ape
    - r-corrplot
    - r-igraph
    - r-magrittr
    - r-nloptr

  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-r6
    - r-rcpp
    - r-rcpparmadillo
    - r-ape
    - r-corrplot
    - r-igraph
    - r-magrittr
    - r-nloptr

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('missSBM')"           # [not win]
    - "\"%R%\" -e \"library('missSBM')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://jchiquet.github.io/missSBM
  license: GPL-3
  summary: When a network is partially observed (here, NAs in the adjacency matrix rather than
    1 or 0  due to missing information between node pairs), it is possible to account
    for the underlying process that generates those NAs. 'missSBM' adjusts the popular
    stochastic block model from network data  sampled under various missing data conditions,
    as described in Tabouy, Barbillon and Chiquet (2019) <doi:10.1080/01621459.2018.1562934>.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: missSBM
# Type: Package
# Title: Handling Missing Data in Stochastic Block Models
# Version: 0.2.0
# Authors@R: c( person("Julien", "Chiquet", role = c("aut", "cre"), email = "julien.chiquet@inra.fr", comment = c(ORCID = "0000-0002-3629-3429")), person("Pierre", "Barbillon", role = c("aut"), email = "pierre.barbillon@agroparistech.fr", comment = c(ORCID = "0000-0002-7766-7693")), person("Timothee", "Tabouy", role = c("aut"), email = "timothee.tabouy@agroparistech.fr") )
# Maintainer: Julien Chiquet <julien.chiquet@inra.fr>
# Description: When a network is partially observed (here, NAs in the adjacency matrix rather than 1 or 0  due to missing information between node pairs), it is possible to account for the underlying process that generates those NAs. 'missSBM' adjusts the popular stochastic block model from network data  sampled under various missing data conditions, as described in Tabouy, Barbillon and Chiquet (2019) <doi:10.1080/01621459.2018.1562934>.
# URL: https://jchiquet.github.io/missSBM
# BugReports: https://github.com/jchiquet/missSBM/issues
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 6.1.1
# Depends: R (>= 3.4.0)
# Imports: Rcpp, methods, ape, igraph, nloptr, corrplot, R6, magrittr
# LinkingTo: Rcpp, RcppArmadillo
# Collate: 'RcppExports.R' 'SBM-Class.R' 'SBM_fit-Class.R' 'SBM_fit_covariates-Class.R' 'SBM_fit_nocovariate-Class.R' 'SBM_sampler-Class.R' 'er_network.R' 'estimate.R' 'frenchblog2007.R' 'missSBM-package.R' 'utils_missSBM.R' 'networkSampling-Class.R' 'networkSampling_fit-Class.R' 'missSBM_fit-Class.R' 'missSBM_collection-Class.R' 'networkSampler-Class.R' 'prepare_data.R' 'sample.R' 'sampledNetwork-Class.R' 'simulate.R' 'utils-pipe.R' 'utils_initialization.R' 'war.R'
# Suggests: aricode, blockmodels, testthat, covr, knitr, rmarkdown, ggplot2
# VignetteBuilder: knitr
# NeedsCompilation: yes
# Packaged: 2019-06-07 12:08:02 UTC; jchiquet
# Author: Julien Chiquet [aut, cre] (<https://orcid.org/0000-0002-3629-3429>), Pierre Barbillon [aut] (<https://orcid.org/0000-0002-7766-7693>), Timothee Tabouy [aut]
# Repository: CRAN
# Date/Publication: 2019-06-08 08:10:03 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
