{% set version = '1.7.2' %}

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

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

source:
  fn: calibrate_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/calibrate_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/calibrate/calibrate_{{ version }}.tar.gz
  sha256: 78066a564f57f2110f1752d681d6b97915cf73135134330587fff8b46c581604

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-mass

  run:
    - r-base
    - r-mass

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

about:
  home: https://CRAN.R-project.org/package=calibrate
  license: GPL-2
  summary: 'Package for drawing calibrated scales with tick marks on (non-orthogonal)  variable
    vectors in scatterplots and biplots. '

  license_family: GPL2

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