{% set version = "4.2" %}

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

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

source:
  fn: PMCMR_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/PMCMR_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/PMCMR/PMCMR_{{ version }}.tar.gz
  sha256: 0c754468924cee8764574559ce8e3b82f40335a61551d7c98cb3930190b10eb7

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

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

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=PMCMR
  license: GPL (>= 3)
  summary: The Kruskal and Wallis one-way analysis of variance by ranks  or van der Waerden's
    normal score test can be employed,  if the data do not meet the assumptions  for
    one-way ANOVA. Provided that significant differences  were detected by the omnibus
    test, one may be interested  in applying post-hoc tests for pairwise multiple comparisons  (such
    as Nemenyi's test, Dunn's test, Conover's test, van der Waerden's test). Similarly,
    one-way ANOVA with repeated  measures that is also referred to as ANOVA with unreplicated  block
    design can also be conducted via the Friedman-Test  or the Quade-test. The consequent
    post-hoc pairwise  multiple comparison tests according to Nemenyi, Conover and Quade
    are also provided in this package. Finally Durbin's test for  a two-way balanced
    incomplete block design (BIBD) is also given in this package.
  license_family: GPL3

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