{% set version = '1.0.0' %}

package:
  name: r-robis
  version: {{ version }}

source:
  fn: robis_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/robis_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/robis/robis_{{ version }}.tar.gz
  sha256: 8f6c4c5710b78301cbf466fd5975769cfd0e0d70668b0e772bc7c03d86ef570b

build:
  number: 0
  skip: True  # [win32]
  script: R CMD INSTALL --build .
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-dplyr
    - r-httr
    - r-jsonlite
    - r-leaflet
  run:
    - r-base
    - r-dplyr
    - r-httr
    - r-jsonlite
    - r-leaflet

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

about:
  home: https
  license: MIT
  license_file: LICENSE
  summary: Client for the Ocean Biogeographic Information System (<http
  license_family: MIT

extra:
  recipe-maintainers:
    - ocefpaf
