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

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

source:
  fn: breakDown_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/breakDown_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/breakDown/breakDown_{{ version }}.tar.gz
  sha256: e7e08e281d4f2eafc48639a6f166bf4bf46501069f88964de68b405433c36c8f

build:
  merge_build_host: True  # [win]
  number: 1
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-ggplot2
  run:
    - r-base
    - r-ggplot2

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

about:
  home: https://pbiecek.github.io/breakDown/
  license: GPL-2
  summary: 'Model agnostic tool for decomposition of predictions from black boxes. Break Down
    Table shows contributions of every variable to a final prediction.  Break Down Plot
    presents variable contributions in a concise graphical way.  This package work for
    binary classifiers and general regression models. '
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]

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