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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/PMCMRplus_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/PMCMRplus/PMCMRplus_{{ version }}.tar.gz
  sha256: c3cd25bd753314b4d1ad0e7a6def88301c487bc32648d278269d98668700fea8

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-bwstest >=0.2.1
    - r-mass
    - r-rmpfr
    - r-suppdists
    - r-gmp
    - r-ksamples >=1.2.7
    - r-multcompview
    - r-mvtnorm >=1.0
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-bwstest >=0.2.1
    - r-mass
    - r-rmpfr
    - r-suppdists
    - r-gmp
    - r-ksamples >=1.2.7
    - r-multcompview
    - r-mvtnorm >=1.0

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

about:
  home: https://CRAN.R-project.org/package=PMCMRplus
  license: GPL-3.0-or-later
  summary: For one-way layout experiments the one-way ANOVA can be performed as an omnibus test. All-pairs multiple comparisons  tests (Tukey-Kramer test, Scheffe test, LSD-test)  and many-to-one tests (Dunnett test) for normally distributed  residuals and equal within variance are available. Furthermore, all-pairs tests
    (Games-Howell test, Tamhane's T2 test,  Dunnett T3 test, Ury-Wiggins-Hochberg test) and many-to-one (Tamhane-Dunnett Test) for normally distributed residuals  and heterogeneous variances are provided. Van der Waerden's normal scores test for omnibus, all-pairs and many-to-one tests is provided for non-normally distributed
    residuals and homogeneous variances. The Kruskal-Wallis, BWS and Anderson-Darling omnibus test and all-pairs tests (Nemenyi test, Dunn test, Conover test, Dwass-Steele-Critchlow- Fligner test) as well as many-to-one (Nemenyi test, Dunn test, U-test) are given for the analysis of variance by ranks.  Non-parametric trend
    tests (Jonckheere test, Cuzick test, Johnson-Mehrotra test, Spearman test) are included.  In addition, a Friedman-test for one-way ANOVA with repeated  measures on ranks (CRBD) and Skillings-Mack test for unbalanced  CRBD is provided with consequent all-pairs tests (Nemenyi test,  Siegel test, Miller test, Conover test,
    Exact test) and many-to-one tests (Nemenyi test, Demsar test, Exact test).  A trend can be tested with Pages's test. Durbin's test  for a two-way balanced incomplete block design (BIBD) is given  in this package as well as Gore's test for CRBD with multiple observations per cell is given.  Outlier tests, Mandel's k-
    and h statistic as well as functions for Type I error and Power  analysis as well as generic summary, print and plot methods  are provided.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

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

# Package: PMCMRplus
# Type: Package
# Title: Calculate Pairwise Multiple Comparisons of Mean Rank Sums Extended
# Version: 1.4.2
# Date: 2019-10-21
# Authors@R: person(given = "Thorsten", family = "Pohlert", email = "thorsten.pohlert@gmx.de", comment = c(ORCID = "0000-0003-3855-3025"), role = c("aut", "cre"))
# Description: For one-way layout experiments the one-way ANOVA can be performed as an omnibus test. All-pairs multiple comparisons  tests (Tukey-Kramer test, Scheffe test, LSD-test)  and many-to-one tests (Dunnett test) for normally distributed  residuals and equal within variance are available. Furthermore, all-pairs tests (Games-Howell test, Tamhane's T2 test,  Dunnett T3 test, Ury-Wiggins-Hochberg test) and many-to-one (Tamhane-Dunnett Test) for normally distributed residuals  and heterogeneous variances are provided. Van der Waerden's normal scores test for omnibus, all-pairs and many-to-one tests is provided for non-normally distributed residuals and homogeneous variances. The Kruskal-Wallis, BWS and Anderson-Darling omnibus test and all-pairs tests (Nemenyi test, Dunn test, Conover test, Dwass-Steele-Critchlow- Fligner test) as well as many-to-one (Nemenyi test, Dunn test, U-test) are given for the analysis of variance by ranks.  Non-parametric trend tests (Jonckheere test, Cuzick test, Johnson-Mehrotra test, Spearman test) are included.  In addition, a Friedman-test for one-way ANOVA with repeated  measures on ranks (CRBD) and Skillings-Mack test for unbalanced  CRBD is provided with consequent all-pairs tests (Nemenyi test,  Siegel test, Miller test, Conover test, Exact test) and many-to-one tests (Nemenyi test, Demsar test, Exact test).  A trend can be tested with Pages's test. Durbin's test  for a two-way balanced incomplete block design (BIBD) is given  in this package as well as Gore's test for CRBD with multiple observations per cell is given.  Outlier tests, Mandel's k- and h statistic as well as functions for Type I error and Power  analysis as well as generic summary, print and plot methods  are provided.
# Depends: R (>= 3.0.0)
# Imports: mvtnorm (>= 1.0), multcompView, gmp, Rmpfr, SuppDists, kSamples (>= 1.2.7), BWStest (>= 0.2.1), MASS
# Suggests: xtable, graphics, knitr, rmarkdown, car, e1071, multcomp, pwr
# SystemRequirements: gmp (>= 4.2.3), mpfr (>= 3.0.0) | file README.md
# SystemRequirementsNote: see >> README.md
# SysDataCompression: gzip
# VignetteBuilder: knitr, rmarkdown
# Classification/MSC-2010: 62J15, 62J10, 62G10, 62F03, 62G30
# NeedsCompilation: yes
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 6.1.1
# License: GPL (>= 3)
# Packaged: 2019-10-21 08:48:49 UTC; thorsten
# Author: Thorsten Pohlert [aut, cre] (<https://orcid.org/0000-0003-3855-3025>)
# Maintainer: Thorsten Pohlert <thorsten.pohlert@gmx.de>
# Repository: CRAN
# Date/Publication: 2019-10-21 14:40:05 UTC
