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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/dimRed_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/dimRed/dimRed_{{ version }}.tar.gz
  sha256: e6e56e3f6999ebdc326e64ead5269f3aaf61dd587beefafb7536ac3890370d84

build:
  merge_build_host: True  # [win]
  number: 2
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-drr
    - r-magrittr
  run:
    - r-base
    - r-drr
    - r-magrittr

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

about:
  home: https://github.com/gdkrmr/dimRed
  license: GPL-3.0-only
  summary: A collection of dimensionality reduction techniques from R packages and a common interface
    for calling the methods.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: dimRed
# Title: A Framework for Dimensionality Reduction
# Version: 0.2.2
# Authors@R: c( person("Guido", "Kraemer", email = "gkraemer@bgc-jena.mpg.de", role = c("aut", "cre")) )
# Description: A collection of dimensionality reduction techniques from R packages and a common interface for calling the methods.
# Depends: R (>= 3.0.0), DRR
# Imports: magrittr, methods
# Suggests: NMF, MASS, Matrix, RANN, RSpectra, Rtsne, cccd, coRanking, diffusionMap, energy, fastICA, ggplot2, graphics, igraph, keras, kernlab, knitr, lle, loe, optimx, pcaL1, pcaPP, reticulate, rgl, scales, scatterplot3d, stats, tensorflow, testthat, tidyr, tinytex, umap, vegan
# VignetteBuilder: knitr
# License: GPL-3 | file LICENSE
# URL: https://github.com/gdkrmr/dimRed
# LazyData: true
# Encoding: UTF-8
# Collate: 'dimRedMethod-class.R' 'misc.R' 'dimRedData-class.R' 'dimRedResult-class.R' 'autoencoder.R' 'dataSets.R' 'diffmap.R' 'dimRed.R' 'drr.R' 'embed.R' 'fastica.R' 'get_info.R' 'graph_embed.R' 'hlle.R' 'isomap.R' 'kpca.R' 'l1pca.R' 'leim.R' 'lle.R' 'loe.R' 'mds.R' 'mixColorSpaces.R' 'nmds.R' 'nnmf.R' 'pca.R' 'plot.R' 'quality.R' 'rotate.R' 'soe.R' 'tsne.R' 'umap.R'
# RoxygenNote: 6.1.0
# NeedsCompilation: yes
# Packaged: 2018-11-13 16:03:29 UTC; gkraemer
# Author: Guido Kraemer [aut, cre]
# Maintainer: Guido Kraemer <gkraemer@bgc-jena.mpg.de>
# Repository: CRAN
# Date/Publication: 2018-11-13 17:50:03 UTC
