{% set version = '1.1' %}

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

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

source:
  fn: lle_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/lle_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/lle/lle_{{ version }}.tar.gz
  sha256: 13cafa6262cd67ba5d051b3b73d0978151c7521a32920566b99f21c27f3d9827

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

requirements:
  build:
    - r-base
    - r-mass
    - r-scatterplot3d
    - r-snowfall

  run:
    - r-base
    - r-mass
    - r-scatterplot3d
    - r-snowfall

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

about:
  home: https://CRAN.R-project.org/package=lle
  license: GPL-3
  summary: LLE is a non-linear algorithm for mapping high-dimensional data into a lower dimensional
    (intrinsic) space. This package provides the main functions to performs the LLE
    alogrithm including some enhancements like subset selection, calculation of the
    intrinsic dimension etc.
  license_family: GPL3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'  # [unix]
  license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3'  # [win]

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