{% set version = '1.2' %}

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

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

source:
  fn: idr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/idr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/idr/idr_{{ version }}.tar.gz
  sha256: 8bbfdf82c8c2b5c73eb079127e198b6cb65c437bb36729f502c7bcd6037fdb16

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=idr
  license: GPL (>= 2.0)
  summary: |
    This is a package for estimating the copula mixture model and plotting correspondence
    curves in "Measuring reproducibility of high-throughput experiments" (2011), Annals
    of Applied Statistics, Vol. 5, No. 3, 1752-1779, by Li, Brown, Huang, and Bickel
  license_family: GPL3

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