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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/Exact_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/Exact/Exact_{{ version }}.tar.gz
  sha256: 53b4e20cbb57615970c572fc4e7a780a510bde8b5deadec3880095f6e17a6328

build:
  merge_build_host: true  # [win]
  number: 2
  noarch: generic
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-rootsolve
  run:
    - r-base
    - r-rootsolve

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

about:
  home: https://CRAN.R-project.org/package=Exact
  license: GPL-2.0-only
  summary: Performs unconditional exact tests and power calculations for 2x2 contingency tables.
  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: Exact
# Type: Package
# Title: Unconditional Exact Test
# Version: 2.0
# Authors@R: person("Peter", "Calhoun", email="calhoun.peter@gmail.com", role=c("aut", "cre"))
# Author: Peter Calhoun [aut, cre]
# Maintainer: Peter Calhoun <calhoun.peter@gmail.com>
# Description: Performs unconditional exact tests and power calculations for 2x2 contingency tables.
# License: GPL-2
# Depends: R (>= 3.1.0)
# Imports: graphics, stats
# LazyData: true
# NeedsCompilation: no
# Packaged: 2019-10-13 14:35:47 UTC; pcalh
# Repository: CRAN
# Date/Publication: 2019-10-14 04:40:02 UTC
