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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RRF_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RRF/RRF_{{ version }}.tar.gz
  sha256: 4b3e6ffcf2aa46fb638a1d73c60c7984c56ba8b9e0e8ff1072528d1a36e0becd

build:
  merge_build_host: true  # [win]
  number: 0

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base
    - {{ native }}gcc-libs         # [win]

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

about:
  home: https://sites.google.com/site/houtaodeng/rrf

  license: GPL-2.0-or-later
  summary: Feature Selection with Regularized Random Forest. This package is based on the 'randomForest' package by Andy Liaw. The key difference is the RRF() function that builds a regularized random forest.

  license_family: GPL2
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

extra:
  recipe-maintainers:
    - conda-forge/r
    - khughitt

# Package: RRF
# Title: Regularized Random Forest
# Version: 1.9.1
# Date: 2018-07-16
# Depends: R (>= 2.5.0), stats
# Suggests: RColorBrewer, MASS
# Author: Fortran original by Leo Breiman and Adele Cutler, R port by Andy Liaw and Matthew Wiener, Regularized random forest for classification by Houtao Deng. Regularized random forest for regression by Xin Guan.
# Description: Feature Selection with Regularized Random Forest. This package is based on the 'randomForest' package by Andy Liaw. The key difference is the RRF() function that builds a regularized random forest.
# Maintainer: Houtao Deng <softwaredeng@gmail.com>
# License: GPL (>= 2)
# URL: https://sites.google.com/site/houtaodeng/rrf
# Repository: CRAN
# Date/Publication: 2019-07-02 15:37:59
# Packaged: 2019-07-02 13:35:50 UTC; ripley
# NeedsCompilation: yes
# RoxygenNote: 5.0.1
