{% set version = '1.0.2-2.1' %}

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

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

source:
  fn: rda_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/rda_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rda/rda_{{ version }}.tar.gz
  sha256: 6918b62f51252b57f2c05b99debef6136b370f594dc3ae6466268e4c35578ef8

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]

  host:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=rda
  license: GPL (>= 2)
  summary: Shrunken Centroids Regularized Discriminant Analysis for the classification purpose
    in high dimensional data.
  license_family: GPL3

extra:
   recipe-maintainers:
    - dpryan79
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
