{% set version = '2.0.7' %}

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

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

source:
  fn: mRMRe_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/mRMRe_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/mRMRe/mRMRe_{{ version }}.tar.gz

  sha256: d6e1a91774cc62f762e8af537ed68fb29eeb96152e7fabf3b668110fafbc4ada

build:
  number: 1000
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - posix                # [win]
    - {{native}}toolchain  # [win]
    - {{ compiler('c') }}  # [not win]
    - {{ compiler('cxx') }}  # [not win]
  host:
    - r-base
    - r-igraph
    - r-survival
  run:
    - r-base
    - r-igraph
    - r-survival


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

about:
  home: https://cran.r-project.org/web/packages/mRMRe/index.html
  license: Artistic-2.0
  summary: Computes mutual information matrices from continuous, categorical and survival variables,
    as well as feature selection with minimum redundancy, maximum relevance (mRMR) and
    a new ensemble mRMR technique.
  license_family: OTHER
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
