{% set version = '0.7.1' %}

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

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

source:
  fn: effsize_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/effsize_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/effsize/effsize_{{ version }}.tar.gz
  sha256: 5ad34aa0c2c87db931927ebd07cc075c2ae0599932dbe360c9c8dac9f0511250

build:
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: http://github.com/mtorchiano/effsize
  license: GPL-2
  summary: A collection of functions to compute the standardized  effect sizes for experiments
    (Cohen d, Hedges g, Cliff delta, Vargha-Delaney A).  The computation algorithms
    have been optimized to allow efficient computation even  with very large data sets.
  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
