{% set version = '0.6.1.1' %}

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

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

source:
  fn: d3heatmap_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/d3heatmap_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/d3heatmap/d3heatmap_{{ version }}.tar.gz
  sha256: 96cb28f5a9c3545df22b18e6f7ac3c461acbc34f14ac185282785e9ceea5a177

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

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

requirements:
  build:
    - r-base
    - r-base64enc
    - r-dendextend >=0.18.0
    - r-htmlwidgets
    - r-png
    - r-scales >=0.2.5

  run:
    - r-base
    - r-base64enc
    - r-dendextend >=0.18.0
    - r-htmlwidgets
    - r-png
    - r-scales >=0.2.5

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

about:
  home: https://github.com/rstudio/d3heatmap
  license: GPL-3
  summary: Create interactive heat maps that are usable from the R console, in the 'RStudio'
    viewer pane, in 'R Markdown' documents, and in 'Shiny' apps. Hover the mouse pointer
    over a cell to show details, drag a rectangle to zoom, and click row/column labels
    to highlight.
  license_family: GPL3

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