{% set version = '0.5' %}

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

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

source:
  fn: ANOM_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/ANOM_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/ANOM/ANOM_{{ version }}.tar.gz
  sha256: 3f4e368c6e686ec41a48cde47d8ab910576b44dfaefccef3754b2d7a7bf2ce92

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-mcpan
    - r-simcomp
    - r-ggplot2
    - r-multcomp
    - r-nparcomp

  run:
    - r-base
    - r-mcpan
    - r-simcomp
    - r-ggplot2
    - r-multcomp
    - r-nparcomp

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

about:
  home: https://github.com/PhilipPallmann/ANOM
  license: GPL (>= 2)
  summary: Analysis of means (ANOM) as used in technometrical computing. The package takes results
    from multiple comparisons with the grand mean (obtained with 'multcomp', 'SimComp',
    'nparcomp', or 'MCPAN') or corresponding simultaneous confidence intervals as input
    and produces ANOM decision charts that illustrate which group means deviate significantly
    from the grand mean.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
