{% set version = '1.0' %}

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

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

source:
  fn: rapportools_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/rapportools_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/rapportools/rapportools_{{ version }}.tar.gz
  sha256: 2b80267625a92b8f7375306203de6fe36b39871183b502b312219e719826fbe9

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

requirements:
  build:
    - r-base
    - r-pander
    - r-plyr
    - r-reshape

  run:
    - r-base
    - r-pander
    - r-plyr
    - r-reshape

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

about:
  home: https://CRAN.R-project.org/package=rapportools
  license: AGPL-3
  summary: Helper functions that act as wrappers to more advanced statistical methods with the
    advantage of having sane defaults for quick reporting.
  license_family: AGPL

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