{% set version = '1.0.5' %}

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

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

source:
  fn: factoextra_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/factoextra_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/factoextra/factoextra_{{ version }}.tar.gz
  sha256: 8177a3f5107883ae248b2cd0afa388a1794741f5155a9455b3883788cf44d5d0

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

requirements:
  build:
    - r-base
    - r-factominer
    - r-abind
    - r-cluster
    - r-dendextend
    - r-ggplot2 >=2.2.0
    - r-ggpubr >=0.1.5
    - r-ggrepel
    - r-reshape2
    - r-tidyr
  run:
    - r-base
    - r-factominer
    - r-abind
    - r-cluster
    - r-dendextend
    - r-ggplot2 >=2.2.0
    - r-ggpubr >=0.1.5
    - r-ggrepel
    - r-reshape2
    - r-tidyr

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

about:
  home: https://CRAN.R-project.org/package=factoextra
  license: GPL-2
  summary: Provides some easy-to-use functions to extract and visualize the output of multivariate
    data analyses, including 'PCA' (Principal Component Analysis), 'CA' (Correspondence
    Analysis), 'MCA' (Multiple Correspondence Analysis), 'FAMD' (Factor Analysis of
    Mixed Data), 'MFA' (Multiple Factor Analysis) and 'HMFA' (Hierarchical Multiple
    Factor Analysis) functions from different R packages. It contains also functions
    for simplifying some clustering analysis steps and provides 'ggplot2' - based elegant
    data visualization.
  license_family: GPL2
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-2'  # [win]

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