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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/PLNmodels_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/PLNmodels/PLNmodels_{{ version }}.tar.gz
  sha256: 4a79edfac3eaa57ed1219c194c460acf26db2fd25f4c9ce372713a1610e4acee

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [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
    - r-matrix
    - r-r6
    - r-rcpp
    - r-rcpparmadillo
    - r-corrplot
    - r-dplyr
    - r-future
    - r-future.apply
    - r-ggplot2
    - r-glassofast
    - r-gridextra
    - r-igraph
    - r-magrittr
    - r-nloptr
    - r-purrr
    - r-rlang
    - r-tidyr
    - libblas
    - liblapack
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-mass
    - r-matrix
    - r-r6
    - r-rcpp
    - r-rcpparmadillo
    - r-corrplot
    - r-dplyr
    - r-future
    - r-future.apply
    - r-ggplot2
    - r-glassofast
    - r-gridextra
    - r-igraph
    - r-magrittr
    - r-nloptr
    - r-purrr
    - r-rlang
    - r-tidyr

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

about:
  home: https://jchiquet.github.io/PLNmodels/
  license: GPL-3.0-or-later
  summary: The Poisson-lognormal model and variants can be used for a variety of multivariate problems when count data are at play, including principal component analysis for count data (Chiquet, Mariadassou and Robin, 2018 <doi:10.1214/18-AOAS1177>), discriminant analysis and network inference (Chiquet, Mariadassou and
    Robin, 2018 <http://proceedings.mlr.press/v97/chiquet19a.html>). Implements variational algorithms to fit such models accompanied with a set of functions for visualization and diagnostic.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - jchiquet
    - cpauvert

# Package: PLNmodels
# Title: Poisson Lognormal Models
# Version: 0.10.6
# Authors@R: c( person("Julien", "Chiquet", role = c("aut", "cre"), email = "julien.chiquet@inrae.fr", comment = c(ORCID = "0000-0002-3629-3429")), person("Mahendra", "Mariadassou", role = "aut", email = "mahendra.mariadassou@inrae.fr", comment = c(ORCID = "0000-0003-2986-354X")), person("Stephane", "Robin", role ="ctb", email = "stephane.robin@inrae.fr") )
# Description: The Poisson-lognormal model and variants can be used for a variety of multivariate problems when count data are at play, including principal component analysis for count data (Chiquet, Mariadassou and Robin, 2018 <doi:10.1214/18-AOAS1177>), discriminant analysis and network inference (Chiquet, Mariadassou and Robin, 2018 <http://proceedings.mlr.press/v97/chiquet19a.html>). Implements variational algorithms to fit such models accompanied with a set of functions for visualization and diagnostic.
# URL: https://jchiquet.github.io/PLNmodels/
# BugReports: https://github.com/jchiquet/PLNmodels/issues
# License: GPL (>= 3)
# Encoding: UTF-8
# RoxygenNote: 7.1.0
# Depends: R (>= 3.4)
# LazyData: true
# Imports: methods, stats, MASS, parallel, R6, glassoFast, Matrix, Rcpp, nloptr (>= 1.2.0), igraph, grid, gridExtra, dplyr, tidyr, ggplot2, corrplot, magrittr
# Suggests: knitr, rmarkdown, testthat, covr, pkgdown, biomformat, phyloseq, spelling
# LinkingTo: Rcpp, RcppArmadillo, nloptr (>= 1.2.0)
# VignetteBuilder: knitr
# Collate: 'PLNfit-class.R' 'PLN.R' 'PLNLDA.R' 'PLNLDAfit-S3methods.R' 'PLNLDAfit-class.R' 'PLNPCA.R' 'PLNPCAfamily-S3methods.R' 'PLNfamily-class.R' 'PLNPCAfamily-class.R' 'PLNPCAfit-S3methods.R' 'PLNPCAfit-class.R' 'PLNfamily-S3methods.R' 'PLNfit-S3methods.R' 'PLNmodels-package.R' 'PLNnetwork.R' 'PLNnetworkfamily-S3methods.R' 'PLNnetworkfamily-class.R' 'PLNnetworkfit-S3methods.R' 'PLNnetworkfit-class.R' 'RcppExports.R' 'deprecated.R' 'import_utils.R' 'mollusk.R' 'plot_utils.R' 'trichoptera.R' 'utils-pipe.R' 'utils.R'
# Language: en-US
# NeedsCompilation: yes
# Packaged: 2020-06-21 19:14:44 UTC; jchiquet
# Author: Julien Chiquet [aut, cre] (<https://orcid.org/0000-0002-3629-3429>), Mahendra Mariadassou [aut] (<https://orcid.org/0000-0003-2986-354X>), Stephane Robin [ctb]
# Maintainer: Julien Chiquet <julien.chiquet@inrae.fr>
# Repository: CRAN
# Date/Publication: 2020-06-22 09:50:03 UTC
