{% set version = '1.1' %}

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

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

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

  sha256: f0d6669f5d6f22569849fe7293e917fe25c8261261b9fc6d87e332397ad86a54

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=EMT
  license: GPL
  summary: The package provides functions to carry out a Goodness-of-fit test for discrete multivariate
    data. It is tested if a given observation is likely to have occurred under the assumption
    of an ab-initio model. A p-value can be calculated using different distance measures
    between observed and expected frequencies. A Monte Carlo method is provided to make
    the package capable of solving high-dimensional problems.
  license_family: GPL
extra:
   recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
