{% set version = '0.2.2' %}

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

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

source:
  fn: nycflights13_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/nycflights13_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/nycflights13/nycflights13_{{ version }}.tar.gz
  sha256: cc13051face739eecf3a5a2654a53d51110b0aa3968cb47b5bfb95053dbfa7a0

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

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

requirements:
  build:
    - r-base
    - r-tibble

  run:
    - r-base
    - r-tibble

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

about:
  home: http://github.com/hadley/nycflights13
  license: CC0
  summary: Airline on-time data for all flights departing NYC in 2013. Also includes useful 'metadata'
    on airlines, airports, weather, and planes.
  license_family: OTHER

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
