{% set version = '2.1.0' %}

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

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

source:
  fn: FWDselect_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/FWDselect_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/FWDselect/FWDselect_{{ version }}.tar.gz
  sha256: e77313b3066806333edec3904d05e4fd51b596737edc337ba4019ecf609d1070

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

requirements:
  build:
    - r-base
    - r-cvtools
    - r-mgcv

  run:
    - r-base
    - r-cvtools
    - r-mgcv

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

about:
  home: http://cran.r-project.org/package=FWDselect
  license: MIT
  summary: A simple method to select the best model or best subset of variables using different
    types of data (binary, Gaussian or Poisson) and applying it in different contexts
    (parametric or non-parametric).
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
