{% set version = '2.1-10' %}

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

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

source:
  fn: fpc_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/fpc_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/fpc/fpc_{{ version }}.tar.gz
  sha256: 5d17c5f475c3f24a4809678cbc6186a357276240cf7fcb00d5670b9e68baa096

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

  rpaths:
    - lib/R/lib/
    - lib/
requirements:
  build:
    - r-base
    - r-mass
    - r-class
    - r-cluster
    - r-diptest
    - r-flexmix
    - r-kernlab
    - r-mclust
    - r-mvtnorm
    - r-prabclus
    - r-robustbase
    - r-trimcluster

  run:
    - r-base
    - r-mass
    - r-class
    - r-cluster
    - r-diptest
    - r-flexmix
    - r-kernlab
    - r-mclust
    - r-mvtnorm
    - r-prabclus
    - r-robustbase
    - r-trimcluster

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

about:
  home: http://www.homepages.ucl.ac.uk/~ucakche/
  license: GPL
  summary: 'Various methods for clustering and cluster validation. Fixed point clustering. Linear
    regression clustering. Clustering by  merging Gaussian mixture components. Symmetric  and
    asymmetric discriminant projections for visualisation of the  separation of groupings.
    Cluster validation statistics for distance based clustering including corrected
    Rand index.  Cluster-wise cluster stability assessment. Methods for estimation of  the
    number of clusters: Calinski-Harabasz, Tibshirani and Walther''s  prediction strength,
    Fang and Wang''s bootstrap stability.  Gaussian/multinomial mixture fitting for
    mixed  continuous/categorical variables. Variable-wise statistics for cluster interpretation.
    DBSCAN clustering. Interface functions for many  clustering methods implemented
    in R, including estimating the number of clusters with kmeans, pam and clara. Modality
    diagnosis for Gaussian mixtures. For an overview see package?fpc.'

  license_family: GPL

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