{% set version = '1.4-4' %}

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

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

source:
  fn: vcd_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/vcd_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/vcd/vcd_{{ version }}.tar.gz
  sha256: a561adf120b5ce41b66e0c0c321542fcddc772eb12b3d7020d86e9cd014ce9d2

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

requirements:
  build:
    - r-base
    - r-mass
    - r-colorspace
    - r-lmtest
  run:
    - r-base
    - r-mass
    - r-colorspace
    - r-lmtest

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

about:
  home: https://CRAN.R-project.org/package=vcd
  license: GPL-2
  summary: Visualization techniques, data sets, summary and inference procedures aimed particularly
    at categorical data. Special emphasis is given to highly extensible grid graphics.
    The package was package was originally inspired by the book  "Visualizing Categorical
    Data" by Michael Friendly and is  now the main support package for a new book,  "Discrete
    Data Analysis with R" by Michael Friendly and  David Meyer (2015).
  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:
    - cbrueffer
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
