{% set version = '0.3.2' %}

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

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

source:
  fn: factorMerger_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/factorMerger_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/factorMerger/factorMerger_{{ version }}.tar.gz
  sha256: 066b733ba0cb62a9eb4757d17a1b0450f9fafcd24be4a4a9201c78f555fe39b7

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

requirements:
  build:
    - r-base
    - r-mass
    - r-agricolae
    - r-colorramps
    - r-dplyr
    - r-ggplot2
    - r-ggpubr
    - r-knitr
    - r-magrittr
    - r-mvtnorm
    - r-proxy
    - r-reshape2
    - r-scales
    - r-survival
  run:
    - r-base
    - r-mass
    - r-agricolae
    - r-colorramps
    - r-dplyr
    - r-ggplot2
    - r-ggpubr
    - r-knitr
    - r-magrittr
    - r-mvtnorm
    - r-proxy
    - r-reshape2
    - r-scales
    - r-survival

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

about:
  home: https://CRAN.R-project.org/package=factorMerger
  license: GPL
  summary: A set of tools to support results of post-hoc testing and enable to extract hierarchical
    structure of factors. Work on this package was financially supported by the 'NCN
    Opus grant 2016/21/B/ST6/02176'.
  license_family: GPL

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