{% set version = '2.2.1' %}

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

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

source:
  fn: gridExtra_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/gridExtra_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/gridExtra/gridExtra_{{ version }}.tar.gz
  sha256: 44fe455a5bcdf48a4ece7a542f83e7749cf251dc1df6ae7634470240398c6818

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

requirements:
  build:
    - r-base
    - r-gtable

  run:
    - r-base
    - r-gtable

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

about:
  home: https://github.com/baptiste/gridextra
  license: GPL (>= 2)
  summary: Provides a number of user-level functions to work with "grid" graphics, notably to
    arrange multiple grid-based plots on a page, and draw tables.
  license_family: GPL3

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
