{% set version = '0.6-12' %}

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

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

source:
  fn: klaR_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/klaR_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/klaR/klaR_{{ version }}.tar.gz
  sha256: 7a8f9fcacc8a0a250811dcd627657bcd7b58c719d585fd5cdcaba9fcc3c2d382

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

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

requirements:
  build:
    - r-base
    - r-mass
    - r-combinat

  run:
    - r-base
    - r-mass
    - r-combinat

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

about:
  home: http://www.statistik.tu-dortmund.de
  license: GPL-2
  summary: Miscellaneous functions for classification and visualization developed at the Fakultaet
    Statistik, Technische Universitaet Dortmund
  license_family: GPL2

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