{% set version = '1.3.2' %}

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

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

source:
  fn: GGally_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/GGally_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/GGally/GGally_{{ version }}.tar.gz
  sha256: f4143f45254fed794be991180aeffe459f6756bfa08acad963707d8e843cfd0a

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-rcolorbrewer
    - r-ggplot2 >=2.2.0
    - r-gtable >=0.2.0
    - r-plyr >=1.8.3
    - r-progress
    - r-reshape >=0.8.5

  run:
    - r-base
    - r-rcolorbrewer
    - r-ggplot2 >=2.2.0
    - r-gtable >=0.2.0
    - r-plyr >=1.8.3
    - r-progress
    - r-reshape >=0.8.5

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

about:
  home: https://ggobi.github.io/ggally, https://github.com/ggobi/ggally
  license: GPL (>= 2.0)
  summary: ' The R package ''ggplot2'' is a plotting system based on the grammar of graphics.
    ''GGally'' extends ''ggplot2'' by adding several functions to reduce the complexity
    of combining geometric objects with transformed data. Some of these functions include
    a pairwise plot matrix, a two group pairwise plot matrix, a parallel coordinates
    plot, a survival plot, and several functions to plot networks.'

  license_family: GPL3

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