{% set version = '1.3-9' %}

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

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

source:
  fn: HSAUR_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/HSAUR_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/HSAUR/HSAUR_{{ version }}.tar.gz
  sha256: 1fa7344491f984a19c00dba1f6a0b32b573c22ad47327790aa57649a8af5502c

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

requirements:
  build:
    - r-base
  run:
    - r-base

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

about:
  home: https://CRAN.R-project.org/package=HSAUR
  license: GPL
  summary: Functions, data sets, analyses and examples from the book  ''A Handbook of Statistical
    Analyses Using R'' (Brian S. Everitt and Torsten Hothorn, Chapman & Hall/CRC, 2006).
    The first chapter of the book, which is entitled ''An Introduction to R'',  is completely
    included in this package, for all other chapters, a vignette containing all data
    analyses is available.
  license_family: GPL

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