{% set version = '1.3.3' %}

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

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

source:
  fn: UpSetR_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/UpSetR_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/UpSetR/UpSetR_{{ version }}.tar.gz
  sha256: 1f567fd542e727e1a8c8bb2b72b27fd08f09aba014eaceb1c7d7a125123d7223

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

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

requirements:
  build:
    - r-base
    - r-ggplot2
    - r-gridextra
    - r-plyr
    - r-scales

  run:
    - r-base
    - r-ggplot2
    - r-gridextra
    - r-plyr
    - r-scales

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

about:
  home: http://github.com/hms-dbmi/UpSetR
  license: MIT
  summary: Creates visualizations of intersecting sets using a novel matrix design, along with
    visualizations of several common set, element and attribute related tasks.
  license_family: MIT

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