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

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

source:
  fn: st_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/st_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/st/st_{{ version }}.tar.gz
  sha256: eb020c1ee0a043f5e76d3dd781219eb409fe42584b657bd096f29df19974de36

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

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-corpcor >=1.6.8
    - r-fdrtool >=1.2.15
    - r-sda >=1.3.7
  run:
    - r-base
    - r-corpcor >=1.6.8
    - r-fdrtool >=1.2.15
    - r-sda >=1.3.7

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

about:
  home: http://strimmerlab.org/software/st/
  license: GPL (>= 3)
  summary: 'Implements the "shrinkage t" statistic  introduced in Opgen-Rhein and Strimmer (2007)
    and a shrinkage estimate of the "correlation-adjusted t-score" (CAT score) described
    in Zuber and Strimmer (2009).  It also offers a convenient interface  to a number
    of other regularized t-statistics commonly  employed in high-dimensional case-control
    studies.    '
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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